.contact-page {
    min-height: 100vh;
    background: #f5faf8;
    color: #12312f;
    font-family: 'Readex Pro', 'Sora', sans-serif;
}

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 0 58px;
    background:
        linear-gradient(135deg, rgba(7, 47, 43, 0.96), rgba(19, 93, 88, 0.9)),
        url('/assets/hft/courses/public-health-and-program-management.jpg') center/cover;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: center;
}

.contact-hero-copy {
    max-width: 790px;
}

.contact-hero-badge,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 900;
}

.contact-hero-badge {
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
    color: #e7fffb;
}

.contact-hero-badge svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.contact-hero h1 {
    max-width: 760px;
    margin: 18px 0 14px;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

.contact-hero p {
    max-width: 730px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.9;
}

.contact-hero-panel {
    display: grid;
    gap: 10px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(4, 32, 29, 0.42);
    box-shadow: 0 24px 70px rgba(4, 32, 29, 0.22);
    backdrop-filter: blur(6px);
}

.contact-hero-panel span {
    color: #e7fffb;
    font-size: 13px;
    font-weight: 900;
}

.contact-hero-panel a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.contact-hero-panel a:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.contact-hero-panel small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.7;
}

.contact-body {
    padding: 38px 0 76px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.contact-form-card,
.contact-info-card,
.contact-dept-card {
    border: 1px solid #dce9e6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(14, 58, 54, 0.08);
}

.contact-form-card {
    padding: 30px;
}

.contact-alert {
    margin-bottom: 18px;
    padding: 13px 14px;
    border: 1px solid rgba(47, 159, 152, 0.24);
    border-radius: 8px;
    background: #eaf5f2;
    color: #135d58;
    font-size: 13px;
    font-weight: 900;
}

.section-label {
    margin-bottom: 12px;
    background: #eaf5f2;
    color: #135d58;
}

.contact-form-card h2,
.contact-info-card h3,
.contact-dept-header h4 {
    color: #12312f;
    font-weight: 900;
    letter-spacing: 0;
}

.contact-form-card h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.form-subtitle,
.card-hint,
.contact-dept-header p {
    color: #5a6c69;
    font-weight: 600;
    line-height: 1.8;
}

.form-subtitle {
    max-width: 720px;
    margin: 0 0 22px;
    font-size: 14px;
}

.contact-form-card form {
    margin-top: 22px !important;
}

.contact-form-card .row {
    margin-right: -8px;
    margin-left: -8px;
}

.contact-form-card [class*="col-"] {
    padding-right: 8px;
    padding-left: 8px;
}

.contact-form-card .form-group {
    margin-bottom: 16px;
}

.contact-form-card .input-label {
    display: block;
    margin-bottom: 8px;
    color: #12312f;
    font-size: 13px;
    font-weight: 900 !important;
}

.contact-form-card .form-control {
    width: 100%;
    min-height: 48px;
    border: 1px solid #dbe8e6;
    border-radius: 8px;
    background: #fff;
    color: #12312f;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    outline: none;
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-form-card textarea.form-control {
    min-height: 150px;
    resize: vertical;
    line-height: 1.8;
}

.contact-form-card .form-control:focus {
    border-color: #2f9f98;
    box-shadow: 0 0 0 3px rgba(73, 180, 174, 0.14);
}

.contact-form-card .is-invalid {
    border-color: #dc2626;
}

.contact-form-card .invalid-feedback {
    font-size: 12px;
    font-weight: 800;
}

.contact-form-card .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
    border: 0;
    border-radius: 8px;
    background: #135d58 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
}

.contact-form-card .btn-primary:hover,
.contact-form-card .btn-primary:focus {
    background: #0f4f4a !important;
    color: #fff !important;
}

.contact-sidebar {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.contact-info-card {
    position: relative;
    overflow: hidden;
    padding: 22px;
    background: #0b413d;
}

.contact-info-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(185, 217, 111, 0.16), transparent 52%);
    pointer-events: none;
}

.contact-info-card > * {
    position: relative;
    z-index: 1;
}

.contact-info-card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
}

.contact-info-card .card-hint {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.contact-dept-card {
    padding: 20px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.contact-dept-card:hover {
    transform: translateY(-3px);
    border-color: rgba(19, 93, 88, 0.28);
    box-shadow: 0 22px 54px rgba(14, 58, 54, 0.12);
}

.contact-dept-header {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.contact-dept-icon,
.contact-dept-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 8px;
}

.contact-dept-icon {
    width: 46px;
    height: 46px;
    background: #eaf5f2;
    color: #135d58;
}

.contact-dept-icon svg,
.contact-dept-link-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-dept-header h4 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.45;
}

.contact-dept-header p {
    margin: 0;
    font-size: 13px;
}

.contact-dept-links {
    display: grid;
    gap: 10px;
}

.contact-dept-link {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 52px;
    padding: 9px 10px;
    border: 1px solid #dce9e6;
    border-radius: 8px;
    background: #f7fbfa;
    color: #12312f;
    text-decoration: none;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.contact-info-card .contact-dept-link {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
}

.contact-dept-link:hover {
    border-color: rgba(19, 93, 88, 0.26);
    background: #eaf5f2;
}

.contact-info-card .contact-dept-link:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.14);
}

.contact-dept-link-icon {
    width: 34px;
    height: 34px;
    background: #eaf5f2;
    color: #135d58;
}

.contact-info-card .contact-dept-link-icon {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.contact-dept-link-info {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.contact-dept-link-type {
    color: #6a7d79;
    font-size: 11px;
    font-weight: 900;
}

.contact-info-card .contact-dept-link-type {
    color: rgba(255, 255, 255, 0.7);
}

.contact-dept-link-value {
    overflow: hidden;
    color: #12312f;
    font-size: 13px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-info-card .contact-dept-link-value {
    color: #fff;
}

@media (max-width: 991px) {
    .contact-hero-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: static;
    }
}

@media (max-width: 767px) {
    .contact-hero {
        padding: 48px 0 38px;
    }

    .contact-hero h1 {
        font-size: 30px;
    }

    .contact-form-card,
    .contact-info-card,
    .contact-dept-card {
        padding: 18px;
    }

    .contact-form-card .btn-primary {
        width: 100%;
    }
}
