/* ==========================================
 * Popup Modal Styles
 * ========================================== */
.membership-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Noto Sans Thai', sans-serif;
}

.membership-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.membership-modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 30px;
    position: relative;
    z-index: 100000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    text-align: center;
}

.membership-modal-close {
    position: absolute;
    top: 15px; right: 15px;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.membership-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: #334155;
    margin: 0 0 25px 0;
}

.membership-input-group {
    margin-bottom: 20px;
}

#membership-phone {
    width: 100%;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 30px;
    font-size: 16px;
    text-align: center;
    color: #475569;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

#membership-phone:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.membership-btn-primary {
    width: 100%;
    background: #3b8c98;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 6px 15px rgba(59, 140, 152, 0.3);
}

.membership-btn-primary:hover {
    background: #2f7580;
    transform: translateY(-1px);
}

.membership-divider {
    margin: 25px 0;
    position: relative;
    text-align: center;
}

.membership-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: #f1f5f9;
    z-index: 1;
}

.membership-divider span {
    background: #ffffff;
    padding: 0 10px;
    color: #94a3b8;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

.membership-btn-social {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 14px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s;
}

.membership-btn-social:hover {
    background: #f8fafc;
}

.membership-btn-social img {
    width: 20px;
    height: 20px;
}

.btn-line { color: #555; }
.btn-line img { width: 22px; height: 22px; }

/* Step 2 Styles */
.membership-modal-subtitle {
    color: #64748b;
    font-size: 14px;
    margin: 0 0 5px 0;
}

.membership-highlight-phone {
    color: #3b8c98;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px 0;
}

.membership-ref-code {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
}

.membership-otp-inputs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.otp-digit {
    width: 45px;
    height: 55px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #334155;
    outline: none;
    transition: all 0.2s;
    /* Hide arrows */
    -moz-appearance: textfield;
}
.otp-digit::-webkit-outer-spin-button,
.otp-digit::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.otp-digit:focus {
    border-color: #3b8c98;
    box-shadow: 0 0 0 3px rgba(59, 140, 152, 0.2);
}

.membership-resend-text {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 25px 0;
}

.membership-btn-link {
    background: none;
    border: none;
    color: #334155;
    font-size: 15px;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    font-family: inherit;
}
