.heading-bg {
    width: 100%;
    padding: 78px 0;
}

.contact-page-shell {
    position: relative;
    overflow: hidden;
    padding: 72px 0 58px;
    background:
        radial-gradient(circle at top left, rgba(41, 98, 255, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(157, 78, 221, 0.18), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #eef2ff 48%, #f8fafc 100%);
}

.contact-page-shell::before,
.contact-page-shell::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.contact-page-shell::before {
    top: 58px;
    left: 7%;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(59, 130, 246, 0.55);
}

.contact-page-shell::after {
    right: 9%;
    bottom: 140px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.14) 0%, rgba(37, 99, 235, 0) 72%);
}

.contact-page-panel {
    position: relative;
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 32px 32px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(16px);
}

.contact-page-header {
    max-width: 680px;
    margin: 0 auto 28px;
    text-align: center;
}

.contact-page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2563eb;
}

.contact-page-eyebrow::before,
.contact-page-eyebrow::after {
    content: "";
    width: 34px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #a855f7);
}

.contact-page-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.02;
}

.contact-page-subtitle {
    margin: 14px auto 0;
    max-width: 600px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.65;
}

.contact-overview-grid,
.contact-form-grid {
    display: grid;
    gap: 24px;
}

.contact-overview-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.82fr);
    align-items: stretch;
    margin-bottom: 22px;
}

.contact-card,
.contact-highlight-card,
.contact-form-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.07);
}

.contact-card,
.contact-highlight-card,
.contact-form-card {
    padding: 22px;
}

.contact-highlight-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.96), rgba(168, 85, 247, 0.94));
    color: #ffffff;
}

.contact-info-grid {
    gap: 14px;
}

.contact-info-item {
    min-height: 98px;
    padding: 20px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(203, 213, 225, 0.65);
    margin-bottom:15px;
}

.contact-info-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(168, 85, 247, 0.18));
    color: #1d4ed8;
    font-size: 15px;
}

.contact-info-item h4,
.contact-form-card h3,
.contact-highlight-card h3 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 1.05rem;
    font-weight: 800;
}

.contact-info-item p,
.contact-form-intro,
.contact-highlight-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
}

.contact-highlight-card h3,
.contact-highlight-card p,
.contact-highlight-card a {
    color: #ffffff;
}

.contact-highlight-chip {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-highlight-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 11px 18px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.contact-highlight-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.contact-form-card h3 {
    margin-bottom: 6px;
}

.contact-form-intro {
    margin-bottom: 18px;
    max-width: 720px;
}

.contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form-field-full {
    grid-column: 1 / -1;
}

.contact-form-field label {
    display: block;
    margin: 0 0 7px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.contact-form-input,
.contact-form-select,
.contact-form-textarea,
.contact-form-file {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.38);
    border-radius: 18px;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form-input,
.contact-form-select,
.contact-form-file {
    height: 50px;
    padding: 0 16px;
}

.contact-form-textarea {
    min-height: 138px;
    padding: 14px 16px;
    resize: vertical;
}

.contact-info-item h4 {
    margin-bottom:0px;
}

.contact-form-input:focus,
.contact-form-select:focus,
.contact-form-textarea:focus,
.contact-form-file:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.9);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
    background: #ffffff;
}

.contact-form-help {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.contact-submit-button {
    min-width: 220px;
    justify-content: center;
}

.contact-inline-note,
.contact-error {
    margin-top: 10px;
    font-size: 14px;
}

.contact-inline-note {
    color: rgba(255, 255, 255, 0.82);
}

.contact-error {
    color: #dc2626;
    font-weight: 600;
}

body.dark-body .contact-page-shell {
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 32%),
        radial-gradient(circle at top right, rgba(168, 85, 247, 0.22), transparent 30%),
        linear-gradient(180deg, #09090f 0%, #111126 52%, #0b1220 100%);
}

body.dark-body .contact-page-panel,
body.dark-body .contact-card,
body.dark-body .contact-form-card {
    border-color: rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
}

body.dark-body .contact-info-item {
    border-color: rgba(148, 163, 184, 0.12);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(16, 24, 39, 0.72));
}

body.dark-body .contact-page-title,
body.dark-body .contact-info-item h4,
body.dark-body .contact-form-card h3,
body.dark-body .contact-form-field label {
    color: #f8fafc;
}

body.dark-body .contact-page-subtitle,
body.dark-body .contact-info-item p,
body.dark-body .contact-form-intro,
body.dark-body .contact-form-help {
    color: #cbd5e1;
}

body.dark-body .contact-form-input,
body.dark-body .contact-form-select,
body.dark-body .contact-form-textarea,
body.dark-body .contact-form-file {
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.54);
    color: #f8fafc;
}

body.dark-body .contact-form-input:focus,
body.dark-body .contact-form-select:focus,
body.dark-body .contact-form-textarea:focus,
body.dark-body .contact-form-file:focus {
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.18);
}

@media (prefers-color-scheme: dark) {
    body:not(.light-body) .contact-page-shell {
        background:
            radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), transparent 32%),
            radial-gradient(circle at top right, rgba(168, 85, 247, 0.22), transparent 30%),
            linear-gradient(180deg, #09090f 0%, #111126 52%, #0b1220 100%);
    }

    body:not(.light-body) .contact-page-panel,
    body:not(.light-body) .contact-card,
    body:not(.light-body) .contact-form-card {
        border-color: rgba(148, 163, 184, 0.14);
        background: rgba(15, 23, 42, 0.72);
        box-shadow: 0 30px 80px rgba(2, 6, 23, 0.42);
    }

    body:not(.light-body) .contact-info-item {
        border-color: rgba(148, 163, 184, 0.12);
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(16, 24, 39, 0.72));
    }

    body:not(.light-body) .contact-page-title,
    body:not(.light-body) .contact-info-item h4,
    body:not(.light-body) .contact-form-card h3,
    body:not(.light-body) .contact-form-field label {
        color: #f8fafc;
    }

    body:not(.light-body) .contact-page-subtitle,
    body:not(.light-body) .contact-info-item p,
    body:not(.light-body) .contact-form-intro,
    body:not(.light-body) .contact-form-help {
        color: #cbd5e1;
    }

    body:not(.light-body) .contact-form-input,
    body:not(.light-body) .contact-form-select,
    body:not(.light-body) .contact-form-textarea,
    body:not(.light-body) .contact-form-file {
        border-color: rgba(148, 163, 184, 0.18);
        background: rgba(2, 6, 23, 0.54);
        color: #f8fafc;
    }

    body:not(.light-body) .contact-form-input:focus,
    body:not(.light-body) .contact-form-select:focus,
    body:not(.light-body) .contact-form-textarea:focus,
    body:not(.light-body) .contact-form-file:focus {
        background: rgba(15, 23, 42, 0.92);
        box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.18);
    }
}

@media (max-width: 991px) {
    .contact-page-shell {
        padding: 58px 0 44px;
    }

    .contact-page-panel,
    .contact-card,
    .contact-highlight-card,
    .contact-form-card {
        padding: 20px;
    }

    .contact-overview-grid,
    .contact-form-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .contact-page-shell {
        padding: 44px 0 34px;
    }

    .contact-page-title {
        font-size: 2rem;
    }

    .contact-submit-button {
        width: 100%;
        min-width: 0;
    }
}
