/* ══════════════════════════════════════════════
   REGISTRATION SINGLE-STEP FORM STYLES
   ══════════════════════════════════════════════ */

/* 2-Column Field Grid (desktop/tablet) */
.registration-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

/* Student-only Certificate block: full-width below the field grid */
#studentFields {
    display: none;
    grid-column: 1 / -1;
}

#studentFields .field {
    margin-bottom: 0;
}

/* Messages */
#registerMessages .error {
    background: #fef2f2;
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #fecaca;
}

#registerMessages .success {
    background: #f0fdf4;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid #bbf7d0;
}

/* Success/Error Messages on Payment Pages */
.success,
.error {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.error {
    background: #fef2f2;
    color: #dc3545;
    border: 1px solid #fecaca;
}

.success h2,
.error h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.payment-details {
    margin-top: 16px;
    padding: 14px;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    text-align: left;
}

.payment-details p {
    margin: 6px 0;
    font-size: 14px;
}

/* Select Dropdowns */
.login-card select {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #d7dce5;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234A5063' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

.login-card select:focus {
    border-color: #f39200;
}

.login-card input[type="email"] {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #d7dce5;
    border-radius: 12px;
    font-size: 16px;
    outline: none;
    font-family: var(--sans);
}

.login-card input[type="email"]:focus {
    border-color: #f39200;
}

/* Field Labels */
.field-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 8px;
}

.field-hint {
    display: block;
    font-size: 12px;
    color: var(--ink-3);
    margin-top: 6px;
}

/* File Upload */
.login-card input[type="file"] {
    width: 100%;
    padding: 14px;
    border: 2px dashed #d7dce5;
    border-radius: 12px;
    font-size: 14px;
    cursor: pointer;
    background: #fafafa;
    transition: border-color 0.2s;
}

.login-card input[type="file"]:hover {
    border-color: #f39200;
}

.login-card input[type="file"]:focus {
    border-color: #f39200;
    outline: none;
}

/* Plan Selection */
.plan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plan-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 2px solid #d7dce5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.plan-option:hover {
    border-color: #f39200;
    background: #fff9f0;
}

.plan-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #f39200;
    cursor: pointer;
}

.plan-option input[type="radio"]:checked + .plan-details {
    color: var(--navy-deep);
}

.plan-option:has(input[type="radio"]:checked) {
    border-color: #f39200;
    background: #fff9f0;
}

.plan-details {
    display: flex;
    flex-direction: column;
}

.plan-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy-deep);
}

.plan-price {
    font-size: 14px;
    color: var(--ink-2);
    margin-top: 2px;
}

/* Password Strength / Match / Phone messages —
   no reserved space while empty, so field gaps stay uniform */
#strengthMessage,
#passwordMessage,
#phoneMessage {
    font-size: 13px;
    min-height: 0;
    margin: 0;
}

/* Keep the password eye icon centered on the 58px input */
.password-wrapper .toggle-password {
    top: 29px;
}

/* Registration Card - Wider for 2-column layout */
.registration-card {
    max-width: 620px;
}

/* Loading Button State */
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ─── MOBILE ─── */
@media (max-width: 768px) {
    .registration-form-grid {
        grid-template-columns: 1fr;
    }

    #studentFields {
        grid-column: auto;
    }

    .plan-option {
        padding: 12px;
    }

    .plan-name {
        font-size: 14px;
    }

    .plan-price {
        font-size: 13px;
    }
}
