:root {
    --contact-ink: #172033;
    --contact-navy: #17233b;
    --contact-navy-soft: #223252;
    --contact-gold: #c9aa60;
    --contact-gold-dark: #9c7834;
    --contact-cream: #f5f1e8;
    --contact-paper: #ffffff;
    --contact-muted: #6b7380;
    --contact-border: #dfe3e8;
}

body.contact-modern-page {
    background: #f4f5f6;
    color: var(--contact-ink);
}

.contact-modern-page .site-header {
    z-index: 100;
}

.contact-modern-page .nav a.active {
    color: var(--contact-navy);
}

.contact-modern-page .nav a.active::after {
    width: 100%;
}

.contact-modern-hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: var(--contact-navy);
}

.contact-modern-hero-image,
.contact-modern-hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.contact-modern-hero-image {
    object-fit: cover;
    object-position: center 36%;
}

.contact-modern-hero-overlay {
    background:
        linear-gradient(
            90deg,
            rgba(11, 19, 33, 0.94) 0%,
            rgba(15, 25, 42, 0.82) 43%,
            rgba(15, 25, 42, 0.22) 80%
        ),
        linear-gradient(
            180deg,
            rgba(10, 17, 29, 0.15),
            rgba(10, 17, 29, 0.62)
        );
}

.contact-modern-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(1240px, calc(100% - 56px));
    min-height: 650px;
    margin: 0 auto;
    padding: 155px 0 120px;
    flex-direction: column;
}

.contact-modern-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
    font-weight: 750;
}

.contact-modern-breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
}

.contact-modern-breadcrumbs a:hover {
    color: var(--contact-gold);
}

.contact-modern-hero-copy {
    max-width: 760px;
    margin-top: auto;
    color: #ffffff;
}

.contact-modern-eyebrow {
    margin: 0 0 11px;
    color: var(--contact-gold-dark);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.contact-modern-hero .contact-modern-eyebrow {
    color: var(--contact-gold);
}

.contact-modern-hero h1 {
    margin: 0;
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.2rem, 7vw, 6.5rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.94;
    text-wrap: balance;
}

.contact-modern-hero-copy > p:not(.contact-modern-eyebrow) {
    max-width: 650px;
    margin: 25px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.02rem;
    line-height: 1.75;
}

.contact-modern-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}

.contact-modern-hero-points span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(18, 29, 48, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.contact-modern-workspace {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.45fr);
    width: min(1180px, calc(100% - 56px));
    margin: -62px auto 100px;
    overflow: hidden;
    border: 1px solid rgba(219, 222, 227, 0.75);
    border-radius: 25px;
    background: var(--contact-paper);
    box-shadow: 0 24px 70px rgba(20, 31, 50, 0.16);
}

.contact-modern-intro {
    padding: clamp(36px, 5vw, 58px);
    background:
        radial-gradient(
            circle at 20% 92%,
            rgba(201, 170, 96, 0.2),
            transparent 28%
        ),
        linear-gradient(145deg, #17233b, #223252);
    color: #ffffff;
}

.contact-modern-intro .contact-modern-eyebrow {
    color: var(--contact-gold);
}

.contact-modern-intro h2,
.contact-modern-form-heading h2,
.contact-modern-paths h2,
.contact-modern-path-grid h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    letter-spacing: -0.03em;
}

.contact-modern-intro h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3.8vw, 3.1rem);
    line-height: 1.06;
}

.contact-modern-intro-copy {
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.75;
}

.contact-modern-guidance-list {
    display: grid;
    gap: 0;
    margin-top: 36px;
}

.contact-modern-guidance-list > div {
    display: grid;
    grid-template-columns: 37px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-modern-guidance-list > div > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid rgba(201, 170, 96, 0.5);
    border-radius: 50%;
    color: var(--contact-gold);
    font-size: 0.62rem;
    font-weight: 900;
}

.contact-modern-guidance-list strong {
    color: #ffffff;
    font-size: 0.78rem;
}

.contact-modern-guidance-list p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.76rem;
    line-height: 1.55;
}

.contact-modern-browse-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 25px;
    padding: 17px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    text-decoration: none;
}

.contact-modern-browse-link span {
    color: var(--contact-gold);
    font-size: 1.1rem;
}

.contact-modern-form-panel {
    min-width: 0;
    padding: clamp(36px, 5.4vw, 64px);
}

.contact-modern-form-heading {
    max-width: 590px;
}

.contact-modern-form-heading h2 {
    color: var(--contact-navy);
    font-size: clamp(2.25rem, 4.8vw, 3.8rem);
    line-height: 1;
}

.contact-modern-form-heading > p:not(.contact-modern-eyebrow) {
    margin: 17px 0 0;
    color: var(--contact-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.contact-modern-alert {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 13px;
    margin-top: 25px;
    padding: 17px 18px;
    border: 1px solid;
    border-radius: 13px;
}

.contact-modern-alert > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    font-weight: 950;
}

.contact-modern-alert.success {
    border-color: #b9d9c6;
    background: #f1faf4;
    color: #24633b;
}

.contact-modern-alert.success > span {
    background: #d8efe0;
}

.contact-modern-alert.error {
    border-color: #edc0bd;
    background: #fff4f3;
    color: #8a342f;
}

.contact-modern-alert.error > span {
    background: #f7dcd9;
}

.contact-modern-alert strong,
.contact-modern-alert p {
    display: block;
}

.contact-modern-alert strong {
    font-size: 0.8rem;
}

.contact-modern-alert p {
    margin: 4px 0 0;
    font-size: 0.73rem;
    line-height: 1.5;
}

.contact-modern-property-context {
    display: grid;
    gap: 4px;
    margin-top: 25px;
    padding: 15px 17px;
    border: 1px solid rgba(201, 170, 96, 0.55);
    border-radius: 12px;
    background: #fffaf0;
}

.contact-modern-property-context span {
    color: var(--contact-gold-dark);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-modern-property-context strong {
    color: var(--contact-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
}

.contact-modern-form {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px 18px;
    margin-top: 33px;
}

.contact-modern-website-field {
    position: absolute;
    top: auto;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-modern-field {
    min-width: 0;
}

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

.contact-modern-field label {
    display: block;
    margin-bottom: 8px;
    color: #364052;
    font-size: 0.7rem;
    font-weight: 900;
}

.contact-modern-field label span {
    color: var(--contact-gold-dark);
}

.contact-modern-field input,
.contact-modern-field select,
.contact-modern-field textarea {
    width: 100%;
    border: 1px solid var(--contact-border);
    border-radius: 10px;
    outline: none;
    background: #fbfcfc;
    color: var(--contact-ink);
    font: inherit;
    font-size: 0.83rem;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
}

.contact-modern-field input,
.contact-modern-field select {
    height: 52px;
    padding: 0 14px;
}

.contact-modern-field textarea {
    min-height: 165px;
    padding: 14px;
    line-height: 1.65;
    resize: vertical;
}

.contact-modern-field input::placeholder,
.contact-modern-field textarea::placeholder {
    color: #9aa1aa;
}

.contact-modern-field input:focus,
.contact-modern-field select:focus,
.contact-modern-field textarea:focus {
    border-color: var(--contact-gold);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(201, 170, 96, 0.13);
}

.contact-modern-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1 / -1;
    gap: 25px;
    margin-top: 4px;
}

.contact-modern-submit-row p {
    max-width: 420px;
    margin: 0;
    color: #8a919b;
    font-size: 0.66rem;
    line-height: 1.55;
}

.contact-modern-submit-row button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    min-width: 170px;
    min-height: 51px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--contact-navy);
    color: #ffffff;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
    transition:
        background 160ms ease,
        transform 160ms ease;
}

.contact-modern-submit-row button:hover {
    background: var(--contact-navy-soft);
    transform: translateY(-2px);
}

.contact-modern-submit-row button span {
    color: var(--contact-gold);
    font-size: 1.08rem;
}

.contact-modern-paths {
    width: min(1180px, calc(100% - 56px));
    margin: 0 auto 100px;
}

.contact-modern-paths-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: end;
    gap: 70px;
    margin-bottom: 34px;
}

.contact-modern-paths h2 {
    max-width: 720px;
    color: var(--contact-navy);
    font-size: clamp(2.3rem, 4.8vw, 4rem);
    line-height: 1;
}

.contact-modern-paths-heading > p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 0.87rem;
    line-height: 1.7;
}

.contact-modern-path-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.contact-modern-path-grid article {
    min-height: 250px;
    padding: 29px;
    border: 1px solid var(--contact-border);
    border-radius: 18px;
    background: var(--contact-paper);
    box-shadow: 0 10px 30px rgba(23, 35, 59, 0.05);
}

.contact-modern-path-grid article > span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--contact-cream);
    color: var(--contact-gold-dark);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-modern-path-grid h3 {
    margin-top: 29px;
    color: var(--contact-navy);
    font-size: 1.65rem;
}

.contact-modern-path-grid p {
    margin: 14px 0 0;
    color: var(--contact-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.contact-modern-page .footer a {
    color: inherit;
    text-decoration: none;
}

.contact-modern-page .footer a:hover {
    color: var(--contact-gold);
}

@media (max-width: 980px) {
    .contact-modern-workspace {
        grid-template-columns: 1fr;
    }

    .contact-modern-guidance-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .contact-modern-guidance-list > div {
        grid-template-columns: 1fr;
    }

    .contact-modern-paths-heading {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 760px) {
    .contact-modern-hero,
    .contact-modern-hero-content {
        min-height: 690px;
    }

    .contact-modern-hero-image {
        object-position: 62% center;
    }

    .contact-modern-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(10, 17, 29, 0.72) 0%,
                rgba(10, 17, 29, 0.5) 36%,
                rgba(10, 17, 29, 0.93) 100%
            );
    }

    .contact-modern-hero-content {
        width: min(100% - 34px, 1240px);
        padding: 135px 0 85px;
    }

    .contact-modern-hero h1 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .contact-modern-workspace {
        width: min(100% - 30px, 1180px);
        margin-top: -35px;
        margin-bottom: 75px;
    }

    .contact-modern-guidance-list {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-modern-form {
        grid-template-columns: 1fr;
    }

    .contact-modern-field.full,
    .contact-modern-submit-row {
        grid-column: auto;
    }

    .contact-modern-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-modern-submit-row button {
        width: 100%;
    }

    .contact-modern-paths {
        width: min(100% - 30px, 1180px);
        margin-bottom: 75px;
    }

    .contact-modern-path-grid {
        grid-template-columns: 1fr;
    }

    .contact-modern-path-grid article {
        min-height: 0;
    }
}

@media (max-width: 520px) {
    .contact-modern-hero-points {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-modern-intro,
    .contact-modern-form-panel {
        padding: 32px 22px;
    }

    .contact-modern-form-heading h2 {
        font-size: 2.35rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-modern-submit-row button {
        transition: none;
    }
}
