:root {
    --contact-ink: #0b3f4c;
    --contact-deep: #082f39;
    --contact-teal: #0e6f80;
    --contact-blue: #2d88a7;
    --contact-aqua: #7fc2c8;
    --contact-mist: #eef7f6;
    --contact-line: #d6e4e3;
    --contact-white: #ffffff;
    --contact-text: #263f45;
    --contact-muted: #6b7e82;
    --contact-alert: #a93838;
}

.contact-page,
.contact-thanks-page {
    color: var(--contact-text);
    overflow: hidden;
    background: #fff;
}

.contact-shell {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.contact-hero {
    position: relative;
    min-height: 490px;
    padding: 190px 0 100px;
    color: #fff;
    overflow: hidden;
    background:
        linear-gradient(120deg, rgba(7, 47, 57, .98), rgba(13, 98, 114, .94) 62%, rgba(46, 140, 164, .88)),
        #0b5362;
}

.contact-hero::after {
    position: absolute;
    right: -8%;
    bottom: -230px;
    width: 58%;
    height: 420px;
    border-radius: 50% 50% 0 0;
    background: rgba(255, 255, 255, .06);
    content: "";
    transform: rotate(-9deg);
}

.contact-hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 80px;
    align-items: end;
}

.contact-kicker,
.contact-section-index {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 0 0 24px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.contact-kicker span,
.contact-section-index span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.contact-kicker span::before {
    width: 38px;
    height: 1px;
    margin-right: 14px;
    background: currentColor;
    content: "";
}

.contact-hero h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 5.2vw, 68px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.045em;
}

.contact-hero-lead {
    margin: 0 0 8px;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, .45);
    color: rgba(255, 255, 255, .85);
    font-size: 15px;
    line-height: 2;
}

.contact-hero-orbit {
    position: absolute;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50%;
}

.contact-hero-orbit-one {
    top: 82px;
    right: 16%;
    width: 300px;
    height: 300px;
}

.contact-hero-orbit-two {
    top: 145px;
    right: 7%;
    width: 520px;
    height: 520px;
}

.contact-main {
    padding: 120px 0 150px;
    background:
        linear-gradient(90deg, rgba(14, 111, 128, .035) 1px, transparent 1px),
        linear-gradient(rgba(14, 111, 128, .035) 1px, transparent 1px),
        #f8fbfa;
    background-size: 48px 48px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(580px, 1.18fr);
    gap: 80px;
    align-items: start;
}

.contact-intro {
    position: sticky;
    top: 135px;
}

.contact-section-index {
    color: var(--contact-teal);
}

.contact-section-index span {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(14, 111, 128, .35);
    border-radius: 50%;
    font-size: 11px;
    letter-spacing: 0;
}

.contact-intro h2,
.contact-form-heading h2 {
    margin: 0;
    color: var(--contact-ink);
    font-size: clamp(34px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.045em;
}

.contact-intro-text {
    margin: 30px 0 0;
    color: #496166;
    font-size: 15px;
    line-height: 2;
}

.contact-promise-list {
    display: grid;
    gap: 0;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--contact-line);
}

.contact-promise-list li {
    position: relative;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 5px 12px;
    padding: 22px 0;
    border-bottom: 1px solid var(--contact-line);
}

.contact-promise-list li > span {
    grid-row: 1 / span 2;
    padding-top: 2px;
    color: var(--contact-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
}

.contact-promise-list strong {
    color: var(--contact-ink);
    font-size: 16px;
}

.contact-promise-list small {
    color: var(--contact-muted);
    font-size: 13px;
    line-height: 1.7;
}

.contact-line-card {
    position: relative;
    display: block;
    margin-top: 36px;
    padding: 32px 66px 32px 32px;
    border-radius: 22px;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    background: linear-gradient(135deg, #06a459, #06c16e);
    box-shadow: 0 22px 50px rgba(3, 121, 66, .18);
    transition: transform .25s ease, box-shadow .25s ease;
}

.contact-line-card::after {
    position: absolute;
    right: -60px;
    bottom: -75px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    content: "";
}

.contact-line-card:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 28px 60px rgba(3, 121, 66, .24);
}

.contact-line-label {
    display: block;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .17em;
}

.contact-line-card strong,
.contact-line-card small {
    position: relative;
    z-index: 1;
    display: block;
}

.contact-line-card strong {
    font-size: 20px;
    line-height: 1.55;
}

.contact-line-card small {
    margin-top: 8px;
    color: rgba(255, 255, 255, .84);
    font-size: 12px;
}

.contact-line-arrow {
    position: absolute;
    z-index: 2;
    right: 26px;
    top: 50%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    transform: translateY(-50%);
}

.contact-form-card {
    padding: clamp(30px, 5vw, 64px);
    border: 1px solid rgba(14, 111, 128, .12);
    border-radius: 34px;
    background: #fff;
    box-shadow: 0 35px 90px rgba(16, 73, 82, .11);
}

.contact-form-heading {
    margin-bottom: 46px;
    padding-bottom: 34px;
    border-bottom: 1px solid var(--contact-line);
}

.contact-form-heading h2 {
    font-size: clamp(30px, 3.5vw, 44px);
}

.contact-form-heading > p:last-child {
    margin: 15px 0 0;
    color: var(--contact-muted);
    font-size: 13px;
}

.contact-alert {
    margin: -18px 0 32px;
    padding: 18px 20px;
    border-left: 4px solid var(--contact-alert);
    border-radius: 8px;
    color: #7f2727;
    background: #fff1f1;
    font-size: 14px;
    line-height: 1.7;
}

.contact-alert a {
    display: inline-block;
    margin-left: 8px;
    color: inherit;
    font-weight: 700;
}

.grx-contact-form {
    display: grid;
    gap: 30px;
}

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

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

.contact-field label,
.contact-field-label {
    display: block;
    margin-bottom: 10px;
    color: var(--contact-ink);
    font-size: 14px;
    font-weight: 800;
}

.contact-required,
.contact-optional {
    display: inline-flex;
    margin-left: 7px;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    vertical-align: 2px;
}

.contact-required {
    color: #a63a46;
    background: #fff0f1;
}

.contact-optional {
    color: var(--contact-muted);
    background: #eef3f3;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;
    border: 1px solid #bfd1d2;
    border-radius: 10px;
    outline: none;
    color: var(--contact-text);
    background: #fbfdfd;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-field input,
.contact-field select {
    min-height: 58px;
    padding: 0 17px;
}

.contact-field textarea {
    min-height: 235px;
    padding: 17px;
    resize: vertical;
    line-height: 1.8;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #a1afb2;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: var(--contact-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(14, 111, 128, .1);
}

.contact-field-help {
    margin: -3px 0 14px;
    color: var(--contact-muted);
    font-size: 12px;
}

.contact-template-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.contact-template-buttons button {
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #c8d9da;
    border-radius: 999px;
    color: var(--contact-ink);
    background: var(--contact-mist);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease, background .2s ease;
}

.contact-template-buttons button:hover,
.contact-template-buttons button:focus-visible {
    border-color: var(--contact-teal);
    outline: none;
    color: #fff;
    background: var(--contact-teal);
}

.contact-counter {
    margin: 7px 0 0;
    color: var(--contact-muted);
    font-size: 11px;
    text-align: right;
}

.contact-consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    color: var(--contact-text);
    background: var(--contact-mist);
    font-size: 13px;
    line-height: 1.7;
}

.contact-consent input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--contact-teal);
}

.contact-consent a {
    color: var(--contact-teal);
    font-weight: 700;
    text-decoration: underline;
}

.contact-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 26px 0 32px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(110deg, var(--contact-deep), var(--contact-teal));
    box-shadow: 0 18px 38px rgba(8, 74, 87, .22);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.contact-submit span:last-child {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(8, 74, 87, .28);
}

.contact-submit:disabled {
    cursor: wait;
    opacity: .66;
    transform: none;
}

.contact-form-note {
    margin: -14px 0 0;
    color: var(--contact-muted);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-thanks-page {
    min-height: 80vh;
    background: #f5faf9;
}

.thanks-hero {
    position: relative;
    padding: 190px 0 140px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(127, 194, 200, .22), transparent 34%),
        linear-gradient(145deg, #f5faf9, #eaf5f4);
}

.thanks-inner {
    position: relative;
    z-index: 2;
    max-width: 940px;
    text-align: center;
}

.thanks-inner .contact-kicker {
    justify-content: center;
    color: var(--contact-teal);
}

.thanks-check {
    display: grid;
    width: 82px;
    height: 82px;
    margin: 0 auto 30px;
    place-items: center;
    border: 1px solid rgba(14, 111, 128, .3);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--contact-teal), var(--contact-blue));
    box-shadow: 0 18px 44px rgba(14, 111, 128, .2);
    font-size: 34px;
}

.thanks-inner h1 {
    margin: 0;
    color: var(--contact-ink);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.05em;
}

.thanks-inner > p {
    margin: 28px 0 0;
    color: #4a6267;
    font-size: 16px;
    line-height: 2;
}

.thanks-notice {
    margin: 28px auto 0;
    padding: 14px 18px;
    border-radius: 9px;
    color: #7a4a13;
    background: #fff4db;
    font-size: 13px;
}

.thanks-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 60px 0 0;
}

.thanks-steps div {
    position: relative;
    padding: 30px 22px;
    border: 1px solid rgba(14, 111, 128, .13);
    border-radius: 20px;
    background: rgba(255, 255, 255, .8);
    box-shadow: 0 18px 44px rgba(16, 73, 82, .07);
    text-align: left;
}

.thanks-steps span {
    display: block;
    margin-bottom: 18px;
    color: var(--contact-teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}

.thanks-steps strong,
.thanks-steps small {
    display: block;
}

.thanks-steps strong {
    color: var(--contact-ink);
    font-size: 17px;
}

.thanks-steps small {
    margin-top: 9px;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.7;
}

.thanks-mail-note {
    max-width: 700px;
    margin-inline: auto !important;
    font-size: 13px !important;
}

.thanks-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 40px;
}

.thanks-button {
    display: inline-flex;
    gap: 34px;
    align-items: center;
    justify-content: space-between;
    min-width: 250px;
    min-height: 62px;
    padding: 0 24px;
    border: 1px solid var(--contact-deep);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.thanks-button:hover {
    transform: translateY(-2px);
}

.thanks-button-primary {
    color: #fff;
    background: var(--contact-deep);
    box-shadow: 0 15px 35px rgba(8, 47, 57, .18);
}

.thanks-button-primary:hover {
    color: #fff;
}

.thanks-button-line {
    border-color: #06a459;
    color: #087f49;
    background: #fff;
}

.thanks-button-line:hover {
    color: #087f49;
    box-shadow: 0 15px 35px rgba(3, 121, 66, .12);
}

.thanks-orbit {
    position: absolute;
    border: 1px solid rgba(14, 111, 128, .12);
    border-radius: 50%;
}

.thanks-orbit-one {
    top: 120px;
    left: -130px;
    width: 460px;
    height: 460px;
}

.thanks-orbit-two {
    right: -170px;
    bottom: -130px;
    width: 600px;
    height: 600px;
}

@media (max-width: 1024px) {
    .contact-hero-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-hero-lead {
        max-width: 610px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .contact-intro {
        position: static;
    }

    .contact-intro-text {
        max-width: 760px;
    }

    .contact-promise-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        border-top: 0;
    }

    .contact-promise-list li {
        display: block;
        padding: 22px;
        border: 1px solid var(--contact-line);
        border-radius: 16px;
        background: rgba(255, 255, 255, .72);
    }

    .contact-promise-list li > span,
    .contact-promise-list strong,
    .contact-promise-list small {
        display: block;
    }

    .contact-promise-list strong {
        margin-top: 12px;
    }

    .contact-promise-list small {
        margin-top: 8px;
    }
}

@media (max-width: 767px) {
    .contact-shell {
        width: min(100% - 32px, 1180px);
    }

    .contact-hero {
        min-height: 470px;
        padding: 168px 0 74px;
    }

    .contact-hero h1 {
        font-size: clamp(34px, 10.3vw, 48px);
        line-height: 1.35;
    }

    .contact-hero-lead {
        padding-left: 18px;
        font-size: 13px;
        line-height: 1.9;
    }

    .contact-hero-orbit-one {
        right: -90px;
    }

    .contact-hero-orbit-two {
        right: -300px;
    }

    .contact-main {
        padding: 80px 0 100px;
        background-size: 36px 36px;
    }

    .contact-layout {
        gap: 46px;
    }

    .contact-intro h2,
    .contact-form-heading h2 {
        font-size: 31px;
    }

    .contact-intro-text {
        margin-top: 22px;
        font-size: 14px;
        line-height: 1.9;
    }

    .contact-promise-list {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 32px;
    }

    .contact-line-card {
        margin-top: 24px;
        padding: 26px 54px 26px 24px;
        border-radius: 17px;
    }

    .contact-line-card strong {
        font-size: 17px;
    }

    .contact-form-card {
        padding: 28px 20px 32px;
        border-radius: 22px;
    }

    .contact-form-heading {
        margin-bottom: 32px;
        padding-bottom: 26px;
    }

    .contact-field-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .grx-contact-form {
        gap: 26px;
    }

    .contact-field input,
    .contact-field select {
        min-height: 56px;
    }

    .contact-field textarea {
        min-height: 250px;
    }

    .contact-template-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-template-buttons button {
        padding-inline: 10px;
    }

    .contact-consent {
        justify-content: flex-start;
        padding: 16px;
    }

    .contact-submit {
        min-height: 66px;
        padding-left: 24px;
    }

    .thanks-hero {
        padding: 165px 0 100px;
    }

    .thanks-inner h1 {
        font-size: 42px;
    }

    .thanks-inner > p {
        font-size: 14px;
        line-height: 1.9;
    }

    .thanks-steps {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 42px;
    }

    .thanks-steps div {
        padding: 24px;
    }

    .thanks-actions {
        flex-direction: column;
    }

    .thanks-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-line-card,
    .contact-submit,
    .thanks-button {
        transition: none;
    }
}
