* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar .navbar-container {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0 24px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2d3142;
    font-size: 24px;
    font-weight: 700;
    justify-content: flex-start;
}

.navbar-brand i {
    font-size: 28px;
    color: #4CAF50;
}

.navbar-toggler {
    border: none;
    padding: 5px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler i {
    font-size: 24px;
    color: #2d3142;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    justify-content: flex-end;
}

.nav-link {
    padding: 10px 20px;
    text-decoration: none;
    color: #2d3142;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: none;
}

.nav-link:not(.btn-outline):not(.btn-primary):hover {
    color: #4CAF50;
    background-color: #f8f9fa;
}

.nav-link.btn-outline {
    border: 2px solid #4CAF50;
    color: #4CAF50;
}

.nav-link.btn-outline:hover {
    background-color: #4CAF50;
    color: #ffffff;
}

.nav-link.btn-primary {
    background-color: #4CAF50;
    color: #ffffff;
}

.nav-link.btn-primary:hover {
    background-color: #45a049;
    color: #ffffff;
}

/* Sign Up Section — school register page (v2) */
.school-signup-page.signup-section {
    --ss-green: #4caf50;
    --ss-green-dark: #388e3c;
    --ss-ink: #1e293b;
    --ss-muted: #64748b;
    --ss-border: #e2e8f0;
    --ss-surface: #ffffff;
    --ss-bg: #f1f5f9;

    padding: 104px 16px 72px;
    min-height: calc(100vh - 80px);
    background:
        radial-gradient(ellipse 70% 45% at 50% -5%, rgba(76, 175, 80, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #ffffff 0%, var(--ss-bg) 100%);
}

.school-signup-wrap {
    max-width: 820px;
    margin: 0 auto;
}

/* Hero */
.school-signup-hero {
    text-align: center;
    margin-bottom: 28px;
}

.school-signup-hero-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--ss-green) 0%, var(--ss-green-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 28px rgba(76, 175, 80, 0.25);
}

.school-signup-hero-icon--verify {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.2);
}

.school-signup-hero-icon i {
    font-size: 2rem;
    color: #fff;
}

.school-signup-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--ss-ink);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.school-signup-subtitle {
    font-size: 0.9375rem;
    color: var(--ss-muted);
    margin: 0 auto;
    max-width: 42ch;
    line-height: 1.55;
}

.school-signup-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.875rem;
}

.school-signup-plan-badge i {
    font-size: 1rem;
}

/* Cosmetic stepper */
.school-signup-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 6px;
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 76px;
    z-index: 100;
}

.school-signup-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 10px;
    text-decoration: none !important;
    color: var(--ss-muted) !important;
    transition: background 0.2s, color 0.2s;
    min-width: 0;
}

.school-signup-step:hover {
    background: #f8fafc;
    color: var(--ss-ink) !important;
}

.school-signup-step.is-active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--ss-green-dark) !important;
}

.school-signup-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    color: var(--ss-muted);
}

.school-signup-step.is-active .school-signup-step-num {
    background: var(--ss-green);
    color: #fff;
}

.school-signup-step-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Main card */
.school-signup-page .school-signup-card {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.school-signup-section {
    background: var(--ss-surface);
    border: 1px solid var(--ss-border);
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    scroll-margin-top: 140px;
}

.school-signup-section--last {
    margin-bottom: 0;
}

.school-signup-section-head {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--ss-border);
}

.school-signup-page .section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ss-ink);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(76, 175, 80, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title-icon i {
    color: var(--ss-green);
    font-size: 1.1rem;
}

.section-lead {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--ss-muted);
    line-height: 1.5;
    padding-left: 46px;
}

.school-signup-page .form-section {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Subdomain URL preview */
.school-signup-url-preview {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 10px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--ss-border);
    border-radius: 10px;
}

.school-signup-url-preview-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ss-muted);
}

.school-signup-url-preview-value {
    font-size: 0.875rem;
    color: var(--ss-ink);
    background: transparent;
    padding: 0;
}

.school-signup-url-preview-value span {
    color: var(--ss-green-dark);
    font-weight: 700;
}

/* Form controls */
.school-signup-page .form-label {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--ss-ink);
}

.school-signup-page .signup-form .form-control,
.school-signup-page .signup-form .form-select {
    padding: 11px 14px !important;
    border: 1.5px solid var(--ss-border) !important;
    border-radius: 10px !important;
    font-size: 0.9375rem !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.school-signup-page .signup-form .form-control:focus,
.school-signup-page .signup-form .form-select:focus {
    border-color: var(--ss-green) !important;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.12) !important;
}

.school-signup-page .signup-form .password-input-wrapper .form-control {
    padding-right: 44px !important;
}

.school-signup-legal-box {
    padding: 18px 20px;
    background: #f8fafc;
    border: 1px solid var(--ss-border);
    border-radius: 12px;
    margin-bottom: 24px;
}

.school-signup-actions {
    margin-top: 0;
    padding-top: 4px;
}

.school-signup-page .btn-submit {
    width: 100%;
    max-width: 360px;
    justify-content: center;
    border-radius: 12px;
    padding: 15px 28px;
    font-size: 1rem;
}

/* Verification */
.school-signup-verify-card {
    padding: 4px 0;
}

.school-signup-verify-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: #1e3a5f;
}

.school-signup-verify-notice i {
    font-size: 1.25rem;
    color: #2563eb;
    flex-shrink: 0;
    margin-top: 2px;
}

.school-signup-otp {
    font-size: 1.5rem !important;
    letter-spacing: 0.35em !important;
    font-weight: 700 !important;
    max-width: 280px;
    margin: 0 auto;
}

.school-signup-verify-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.school-signup-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ss-ink);
    background: #fff;
    border: 1.5px solid var(--ss-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.school-signup-btn-secondary:hover:not(:disabled) {
    border-color: var(--ss-green);
    background: #f0fdf4;
}

.school-signup-btn-secondary:disabled {
    opacity: 0.65;
    cursor: wait;
}

.school-signup-resend-status {
    font-size: 0.8125rem;
}

.school-signup-page .link {
    color: var(--ss-green);
    font-weight: 600;
}

/* Legacy aliases */
.signup-section {
    padding: 100px 0 80px;
    min-height: calc(100vh - 200px);
}

.signup-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 50px;
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-title {
    font-size: 32px;
    font-weight: 700;
    color: #2d3142;
    margin-bottom: 10px;
}

.signup-subtitle {
    font-size: 16px;
    color: #6c757d;
}

/* Form Sections */
.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e4e6eb;
}

.form-section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3142;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #4CAF50;
    font-size: 24px;
}

/* Form Controls */
.form-label {
    font-weight: 500;
    color: #2d3142;
    margin-bottom: 8px;
    font-size: 14px;
}

.required {
    color: #ff4444;
    margin-left: 3px;
}

.signup-form .form-control,
.signup-form .form-select {
    padding: 12px 12px 12px 8px !important;
    border: 2px solid #e4e6eb;
    border-radius: 8px;
    font-size: 15px;
    color: #2d3142;
    transition: all 0.3s;
    background-color: #ffffff;
}

.signup-form .form-control:focus,
.signup-form .form-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.form-text {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
}

/* Error messages */
.text-danger {
    color: #dc3545 !important;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.text-danger.small {
    font-size: 12px;
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

/* Ensure password fields have the same padding as other form controls */
/* Make this more specific than .signup-form .form-control */
.signup-form .password-input-wrapper .form-control {
    padding: 12px 12px 12px 8px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    z-index: 1;
}

.password-toggle:hover {
    color: #4CAF50;
}

.password-toggle i {
    font-size: 18px;
}

/* Checkboxes */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-check-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    border: 2px solid #e4e6eb;
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.form-check-label {
    font-size: 14px;
    color: #2d3142;
    line-height: 1.5;
    cursor: pointer;
}

.link {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.link:hover {
    color: #45a049;
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.signup-footer {
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

/* Footer */
.footer {
    background-color: #2d3142;
    color: #ffffff;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.footer-logo i {
    font-size: 28px;
    color: #4CAF50;
}

.footer-description {
    color: #adb5bd;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #adb5bd;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: #adb5bd;
    font-size: 14px;
}

.footer-contact i {
    color: #4CAF50;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #adb5bd;
    font-size: 14px;
    margin: 0;
}

/* Responsive — school signup page */
@media (max-width: 768px) {
    .school-signup-page.signup-section {
        padding: 92px 12px 56px;
    }

    .school-signup-steps {
        top: 68px;
        gap: 4px;
        padding: 4px;
    }

    .school-signup-step {
        padding: 8px 4px;
    }

    .school-signup-step-label {
        font-size: 0.625rem;
    }

    .school-signup-section {
        padding: 22px 18px 20px;
        scroll-margin-top: 120px;
    }

    .section-lead {
        padding-left: 0;
        margin-top: 8px;
    }

    .school-signup-page .section-title {
        flex-wrap: wrap;
    }

    .school-signup-page .btn-submit {
        max-width: none;
    }
}

@media (max-width: 400px) {
    .school-signup-step-num {
        width: 22px;
        height: 22px;
        font-size: 0.6875rem;
    }

    .school-signup-page .signup-form .form-control,
    .school-signup-page .signup-form .form-select {
        font-size: 16px !important;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .signup-container {
        padding: 40px 30px;
    }

    .signup-title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .signup-section {
        padding: 30px 0 60px;
    }

    .signup-container {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .signup-title {
        font-size: 24px;
    }

    .signup-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }

    .form-section {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .btn-submit {
        padding: 14px 35px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .signup-container {
        padding: 25px 15px;
    }

    .signup-title {
        font-size: 22px;
    }

    .section-title {
        font-size: 16px;
    }

    .signup-form .form-control,
    .signup-form .form-select {
        font-size: 14px;
        padding: 10px 12px 10px 8px !important;
    }

    .navbar-nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 16px;
    }
}
