/* ============================================================
   Customer Registration Form — Mindly
   Exact Match to Reference Images
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --teal: #00696d;
    --teal-dark: #004d50;
    --teal-light: #e6f4f5;
    --text-dark: #1a2a3a;
    --text-mid: #5a6e7c;
    --text-light: #8a9caa;
    --border: #dee9ef;
    --input-bg: #f8fafc;
    --radius-pill: 40px;
    --radius-card: 24px;
    --radius-sm: 16px;
}

/* ========== PAGE BACKGROUND ========== */
.registration-section {
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0f4f8 0%, #e8edf2 100%);
    font-family: 'Outfit', sans-serif;
}

.registration-container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
}

.registration-wrapper {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-card);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========== HEADER ========== */
.registration-header {
    padding: 48px 56px 16px;
    text-align: center;
    background: transparent;
}

.registration-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.registration-header h1 em {
    font-family: 'Newsreader', serif;
    font-style: italic;
    color: var(--teal);
    font-weight: 500;
}

.registration-header p {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ========== CONTENT ========== */
.registration-content {
    padding: 24px 56px 56px;
}

/* ========== PROGRESS STEPS ========== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 20px 0 50px;
    padding: 7px 20px;
}

/* Background Line */
.progress-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 70px;
    right: calc(10%);
    height: 10px;
    background: #e2e8f0;
    border-radius: 10px;
    z-index: 1;
}

.progress-bar {
    position: absolute;
    top: 24px;
    left: 70px;
    height: 10px;
    width: 0%;
   background: linear-gradient(90deg, #c4b5fd 0%, #a5d8d9 50%, #74e3e7 100%);
    border-radius: 10px;
    z-index: 2;
    transition: width 0.5s ease-in-out;
}

/* Individual Step */
.step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

/* Step Circle - Number inside */
.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #9ca3af;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

/* Active Step */
.step.active .step-circle {
    background: #00696d;
    border-color: #00696d;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 105, 109, 0.3);
}

/* Completed Step - Number hide karo, tick dikhao */
.step.completed .step-circle {
    background: #00696d;
    border-color: #00696d;
    color: white;
    font-size: 0;
}

.step.completed .step-circle::before {
    content: '✓';
    font-size: 1rem;
    font-weight: bold;
}

/* Step Label */
.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #9ca3af;
    text-align: center;
    font-family: 'Outfit', sans-serif;
}

.step.active .step-label {
    font-weight: 600;
    color: #1a2a3a;
}

.step.completed .step-label {
    font-weight: 600;
    color: #00696d;
}

/* ========== SECTION TITLES ========== */
.section-title,
h3.section-title {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--teal);
    text-align: center;
    font-size: 1.8rem;
    margin: 0 0 32px 0;
}

h4.section-title {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--teal);
    text-align: center;
    font-size: 1.4rem;
    margin: 40px 0 24px 0;
}

/* ========== FORM SECTIONS ========== */
.form-section {
    display: none;
    animation: fadeIn 0.35s ease;
}

.form-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== PHOTO + STUDENT CARD SECTION ========== */
.photo-student-card {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
    background: var(--input-bg);
    border-radius: 24px;
    padding: 28px;
    border: 1.5px solid var(--border);
    align-items: flex-start;
}

.photo-side {
    flex: 0 0 200px;
}

.photo-upload-container {
    border: 2px dashed #cbd5e1;
    border-radius: var(--radius-sm);
    background: white;
    cursor: pointer;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    transition: all 0.2s;
    position: relative;
    text-align: center;
}

.photo-upload-container.has-photo {
    border: 2px solid var(--teal);
    background: rgba(0, 105, 109, 0.03);
}

.photo-upload-container:hover {
    border-color: var(--teal);
    background: rgba(0, 105, 109, 0.03);
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: none;
    margin-bottom: 10px;
    border: 3px solid var(--teal);
    padding: 3px;
}

.photo-preview.show {
    display: block;
}

.upload-icon {
    font-size: 2.8rem;
    color: var(--teal);
}

.upload-icon.hide {
    display: none;
}

.upload-text {
    font-size: 0.85rem;
    color: var(--teal);
    font-weight: 500;
    text-align: center;
}

.upload-text .photo-status {
    font-weight: 600;
    color: var(--teal-dark);
    display: block;
    margin-bottom: 4px;
}

.upload-text .change-text {
    font-size: 0.7rem;
    color: var(--text-light);
    font-weight: 400;
}

.upload-text small {
    display: block;
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 4px;
}

.student-side {
    flex: 1;
    padding-top: 10px;
}

.student-question {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    display: block;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
}

.student-subtext {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.4;
}

.student-check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.student-checkbox {
    width: 20px;
    height: 20px;
    accent-color: var(--teal);
    cursor: pointer;
    margin: 0;
}

.student-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 500;
}

/* University Select */
#university_group {
    margin-top: 16px;
}

#university_group .form-select {
    background: white;
}

/* ========== FORM ROWS ========== */
.form-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* ========== FORM GROUPS ========== */
.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.required {
    color: #e53e3e;
    margin-left: 2px;
}

/* ========== INPUT FIELDS - PILL SHAPE ========== */
.form-control,
.form-select {
    width: 100%;
    padding: 12px 20px;
    height: 52px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    transition: all 0.2s;
    outline: none;
}

.form-control::placeholder {
    color: #b8cbd6;
    font-weight: 400;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 4px rgba(0, 105, 109, 0.1);
}

textarea.form-control {
    height: auto;
    min-height: 90px;
    border-radius: 24px;
    resize: vertical;
    line-height: 1.5;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238fa8b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    padding-right: 48px;
    cursor: pointer;
}

/* ========== EMAIL VERIFICATION ========== */
.email-verification {
    position: relative;
}

.email-verification .input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.email-verification .form-control {
    flex: 1;
    padding-right: 15px;
}

.btn-verify {
    background: linear-gradient(135deg, #c4b5fd 0%, #b8a8f8 100%);
    color: #5b4b8a;
    border: none;
    padding: 0 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    height: 52px;
    transition: all 0.2s;
}

.btn-verify:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

/* OTP Section */
#otpSection {
    margin-top: 16px;
    padding: 16px 20px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
}

.input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.input-group .form-control {
    flex: 1;
}

.input-group .btn-success {
    height: 48px;
    padding: 0 24px;
    border-radius: 50px;
    background: #10b981;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
}

/* ========== MULTISELECT GROUP ========== */
.multiselect-group {
    padding: 20px 24px;
    border: 1.5px solid var(--border);
    border-radius: 20px;
    background: var(--input-bg);
    margin-bottom: 24px;
}

.multiselect-label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.checkbox-item:hover {
    border-color: var(--teal);
    background: rgba(0, 105, 109, 0.04);
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    cursor: pointer;
}

.checkbox-item label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* ========== PASSWORD FIELD ========== */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 16px;
    bottom: 10px;              /* (52px input - 32px button) / 2 = 10px */
    top: auto;
    transform: none;           /* ❌ translateY(-50%) hata de */
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    outline: none;
    pointer-events: auto;
}

/* Icon ke upar click karne par button hi trigger ho */
.toggle-password i {
    pointer-events: none;
}

.toggle-password:hover {
    color: var(--teal);
}

/* ========== SUBMIT WRAPPER ========== */
.submit-wrapper {
    text-align: center;
    padding: 40px 20px;
}

.submit-wrapper .icon {
    font-size: 4rem;
    color: var(--teal);
    margin-bottom: 20px;
}

.submit-wrapper h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.submit-wrapper p {
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 20px;
}

.terms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.terms input {
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
}

.terms label {
    font-size: 0.85rem;
    color: var(--text-dark);
}

.terms a {
    color: var(--teal);
    text-decoration: none;
}

.terms a:hover {
    text-decoration: underline;
}

/* ========== NAVIGATION BUTTONS ========== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1.5px solid var(--border);
}

.form-nav-btn {
    padding: 14px 36px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-nav-btn i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.btn-prev {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-mid);
}

.btn-prev:hover {
    background: var(--input-bg);
    border-color: #cbd5e1;
}

.btn-next, .btn-submit {
    background: var(--teal);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 105, 109, 0.25);
}

.btn-next:hover, .btn-submit:hover {
    background: var(--teal-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 105, 109, 0.3);
}

/* ========== ALERT MESSAGES ========== */
.alert {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* ========== UTILITIES ========== */
.d-none { display: none !important; }
.d-block { display: block !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.text-center { text-align: center; }

small {
    font-size: 0.7rem;
    color: var(--text-light);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .registration-header { padding: 36px 40px 12px; }
    .registration-content { padding: 20px 40px 48px; }
    .registration-header h1 { font-size: 2.5rem; }
    .form-row-2, .form-row-3 { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .photo-student-card { flex-direction: column; align-items: center; text-align: center; }
    .photo-side { flex: 0 0 auto; width: 200px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .registration-section { padding: 40px 16px; }
    .progress-steps { padding: 0 8px; margin-bottom: 40px; }
    .progress-steps::before { top: 20px; left: 8px; right: 8px; }
    .progress-bar { top: 20px; left: 8px; }
    .step-circle { width: 42px; height: 42px; font-size: 1rem; }
    .step-label { font-size: 0.7rem; }
}

@media (max-width: 640px) {
    .registration-header { padding: 28px 20px 8px; }
    .registration-header h1 { font-size: 2rem; }
    .registration-content { padding: 16px 20px 36px; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; gap: 16px; }
    .step-circle { width: 40px; height: 40px; font-size: 0.9rem; }
    .step-label { font-size: 0.65rem; }
    .form-navigation { flex-direction: column; gap: 12px; }
    .form-nav-btn { width: 100%; justify-content: center; }
    .checkbox-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-student-card { padding: 16px; }
    .btn-verify { padding: 0 12px; font-size: 0.65rem; }
}

@media (max-width: 480px) {
    .checkbox-grid { grid-template-columns: 1fr; }
    .step-circle { width: 36px; height: 36px; font-size: 0.85rem; }
    .step-label { display: none; }
    .progress-steps { margin-bottom: 30px; }
    .registration-header h1 { font-size: 1.7rem; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .progress-steps {
        margin: 15px 0 40px;
        padding: 0 10px;
    }
    .progress-steps::before {
        top: 22px;
        left: 40px;
        right: 40px;
    }
    .progress-bar {
        top: 22px;
        left: 40px;
    }
    .step-circle {
        width: 42px;
        height: 42px;
        font-size: 1rem;
    }
    .step-label {
        font-size: 0.7rem;
    }
}

@media (max-width: 640px) {
    .progress-steps {
        margin: 10px 0 35px;
    }
    .progress-steps::before {
        top: 20px;
        left: 35px;
        right: 35px;
    }
    .progress-bar {
        top: 20px;
        left: 35px;
    }
    .step-circle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    .step-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 550px) {
    .progress-steps::before {
        left: 30px;
        right: 30px;
    }
    .progress-bar {
        left: 30px;
    }
    .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
    .step-label {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .step-label {
        display: none;
    }
    .step-circle {
        width: 38px;
        height: 38px;
        margin-bottom: 0;
    }
    .progress-steps {
        margin-bottom: 25px;
    }
    .progress-steps::before {
        top: 18px;
    }
    .progress-bar {
        top: 18px;
    }
}