.contact-page {
    background: #ffffff;
    min-height: 70vh;
    padding: 3rem 0 4rem;
}

.contact-dark-theme {
    background: #0A092D;
    color: #e2e8f0;
}

.contact-dark-theme .navbar {
    background: #202040 !important;
    border-bottom: 1px solid #586380;
}

.contact-dark-theme .nav-link,
.contact-dark-theme .navbar-brand,
.contact-dark-theme .subjects-dropdown-wrapper .nav-link,
.contact-dark-theme .subjects-dropdown-wrapper .subject-item-link {
    color: #e2e8f0 !important;
}

.contact-dark-theme .search-container .input-group,
.contact-dark-theme .search-container .input-group-text {
    background: #2E3856 !important;
    border-color: #586380 !important;
}

.contact-dark-theme .search-container .form-control,
.contact-dark-theme .search-container .form-control::placeholder {
    color: #cbd5e1 !important;
}

.contact-dark-theme .subjects-mega-menu,
.contact-dark-theme .subjects-items-column {
    background: #2E3856 !important;
    border-color: #586380 !important;
}

.contact-dark-theme .subject-item-link:hover {
    background: #202040 !important;
    color: #ffffff !important;
}

.contact-dark-theme .contact-page {
    background: #0A092D;
}

.contact-header {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.contact-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #bfdbfe;
    background: #2E3856;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    margin-bottom: 0.75rem;
}

.contact-title {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f8fafc;
    margin-bottom: 0.75rem;
}

.contact-subtitle {
    color: #94a3b8;
    font-size: 1.03rem;
    line-height: 1.65;
    margin-bottom: 0;
}

.contact-layout {
    align-items: stretch;
}

.contact-info-panel {
    background: #202040;
    color: #e2e8f0;
    border-radius: 18px;
    padding: 1.7rem;
    height: 100%;
    border: 1px solid #586380;
    box-shadow: none;
}

.contact-info-title {
    color: #f8fafc;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-info-text {
    color: #94a3b8;
    font-size: 0.94rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: #2E3856;
    border: 1px solid #586380;
    border-radius: 12px;
    padding: 0.8rem;
}

.contact-info-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #202040;
    color: #bfdbfe;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    font-size: 0.95rem;
}

.contact-info-item h3 {
    font-size: 0.92rem;
    margin: 0 0 0.2rem;
    color: #f8fafc;
}

.contact-info-item p {
    margin: 0;
    font-size: 0.84rem;
    color: #cbd5e1;
}

.contact-card {
    background: #202040;
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid #586380;
    box-shadow: none;
}

.contact-form .form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 0.4rem;
}

.contact-form .form-control {
    border-radius: 10px;
    background: #2E3856;
    border: 1px solid #586380;
    padding: 0.78rem 0.9rem;
    color: #f8fafc;
}

.contact-form .form-control::placeholder {
    color: #cbd5e1;
}

.contact-form .form-control:focus {
    background: #2E3856;
    border-color: #60a5fa;
    box-shadow: 0 0 0 0.2rem rgba(96, 165, 250, 0.18);
}

.contact-note {
    font-size: 0.85rem;
    color: #94a3b8;
}

.contact-submit-btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 0.6rem 1.25rem;
    min-width: 150px;
}

.contact-dark-theme .footer-section {
    background: #0A092D;
    border-top: 1px solid #2E3856;
}

.contact-dark-theme .footer-heading {
    color: #f8fafc;
}

.contact-dark-theme .footer-links a,
.contact-dark-theme .country-link,
.contact-dark-theme .copyright-text,
.contact-dark-theme .social-icon,
.contact-dark-theme .footer-link {
    color: #94a3b8;
}

.contact-dark-theme .footer-link {
    color: #ffffff !important;
}

.contact-dark-theme .footer-link:hover {
    color: #ffffff !important;
}

.contact-dark-theme .footer-divider {
    border-color: #2E3856;
}

@media (max-width: 991px) {
    .contact-page {
        padding-top: 2.25rem;
    }

    .contact-info-panel,
    .contact-card {
        padding: 1.3rem;
    }
}

@media (max-width: 575px) {
    .contact-title {
        font-size: 1.7rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .contact-submit-btn {
        width: 100%;
        margin-top: 0.75rem;
    }
}
