/* BATES v0.26.198 – conversion-focused contact page with responsive guided routing. */

.bates-contact-hero {
    padding-block: clamp(58px, 6vw, 84px);
}

.bates-contact-hero .hero-copy h1 {
    max-width: 690px;
    font-size: clamp(2.6rem, 5vw, 4.35rem);
    line-height: 1.02;
    text-wrap: balance;
}

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

.bates-contact-hero .service-hero-visual {
    min-height: 430px;
}

.bates-contact-flow {
    padding-block: clamp(54px, 5.6vw, 78px);
    overflow: clip;
    background: #f4f7fc;
}

.bates-contact-flow *,
.bates-contact-flow *::before,
.bates-contact-flow *::after {
    box-sizing: border-box;
}

.bates-contact-flow__heading {
    max-width: 740px;
    margin-inline: auto;
    text-align: center;
}

.bates-contact-flow__heading h2 {
    margin-bottom: 10px;
}

.bates-contact-topics {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    min-width: 0;
    margin: 30px 0 42px;
    padding: 0;
    border: 0;
}

.bates-contact-topic {
    min-width: 0;
    cursor: pointer;
}

.bates-contact-topic input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.bates-contact-topic > span {
    display: flex;
    min-height: 174px;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #dce4f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(19, 32, 60, .045);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bates-contact-topic small {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    margin-bottom: 15px;
    border-radius: 9px;
    background: #edf3fc;
    color: #3157a7;
    font-size: .68rem;
    font-style: normal;
    font-weight: 900;
}

.bates-contact-topic strong {
    color: #13203c;
    font-size: .98rem;
    line-height: 1.3;
}

.bates-contact-topic em {
    margin-top: 7px;
    color: #6c788c;
    font-size: .76rem;
    font-style: normal;
    line-height: 1.48;
}

.bates-contact-topic:hover > span {
    border-color: #9eb3dc;
    transform: translateY(-2px);
}

.bates-contact-topic input:focus-visible + span {
    outline: 3px solid rgba(49, 87, 167, .22);
    outline-offset: 2px;
}

.bates-contact-topic input:checked + span {
    border-color: #3157a7;
    background: linear-gradient(180deg, #fff, #f2f6fd);
    box-shadow: 0 12px 28px rgba(49, 87, 167, .12), inset 0 0 0 1px #3157a7;
}

.bates-contact-topic input:checked + span small {
    background: #3157a7;
    color: #fff;
}

.bates-contact-main {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
    gap: clamp(22px, 3vw, 36px);
    align-items: start;
}

.bates-contact-form-card,
.bates-contact-people,
.bates-contact-office,
.bates-contact-billing {
    min-width: 0;
    border: 1px solid #dce4f0;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(19, 32, 60, .065);
}

.bates-contact-form-card {
    padding: clamp(25px, 3.2vw, 40px);
    scroll-margin-top: 92px;
}

.bates-contact-form-card h2,
.bates-contact-people__head h2 {
    margin: 8px 0 10px;
    color: #13203c;
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    line-height: 1.12;
    text-wrap: balance;
}

.bates-contact-form-card__intro,
.bates-contact-people__head > p {
    margin: 0 0 24px;
    color: #68758a;
    line-height: 1.62;
}

.bates-contact-inline-form input,
.bates-contact-inline-form textarea {
    width: 100%;
}

.bates-contact-inline-form .button-full {
    min-height: 50px;
}

.bates-contact-form-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: -2px 0 0;
    color: #69758a;
    font-size: .76rem;
    line-height: 1.45;
}

.bates-contact-form-note span {
    color: #21865a;
    font-weight: 900;
}

.bates-contact-people {
    display: grid;
    gap: 13px;
    padding: clamp(23px, 2.7vw, 32px);
}

.bates-contact-person {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    padding: 18px;
    border: 1px solid #e0e7f1;
    border-radius: 16px;
    background: #f8faff;
}

.bates-contact-person .contact-avatar {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 14px;
    font-size: 20px;
}

.bates-contact-person h3 {
    margin: 1px 0 5px;
    color: #13203c;
    font-size: 1.08rem;
}

.bates-contact-person p {
    margin: 0;
    color: #6c788c;
    font-size: .84rem;
    line-height: 1.48;
}

.bates-contact-person__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.bates-contact-person__actions .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: .72rem;
}

.bates-contact-office {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    margin-top: 28px;
    padding: 22px 25px;
}

.bates-contact-office__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: #edf3fc;
    color: #3157a7;
    font-size: 22px;
    font-weight: 900;
}

.bates-contact-office h2 {
    margin: 5px 0 4px;
    color: #13203c;
    font-size: 1.22rem;
}

.bates-contact-office p {
    margin: 0;
    color: #6c788c;
    font-size: .84rem;
}

.bates-contact-office .button {
    white-space: nowrap;
}

.bates-contact-billing {
    margin-top: 16px;
    overflow: hidden;
}

.bates-contact-billing > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 21px 25px;
    cursor: pointer;
    list-style: none;
}

.bates-contact-billing > summary::-webkit-details-marker {
    display: none;
}

.bates-contact-billing > summary span:first-child,
.bates-contact-billing > summary strong,
.bates-contact-billing > summary em {
    display: block;
}

.bates-contact-billing > summary strong {
    margin-top: 4px;
    color: #13203c;
    font-size: 1.16rem;
}

.bates-contact-billing > summary em {
    margin-top: 3px;
    color: #778397;
    font-size: .78rem;
    font-style: normal;
}

.bates-contact-billing__toggle {
    flex: 0 0 35px;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    border-radius: 50%;
    background: #edf3fc;
    color: #3157a7;
}

.bates-contact-billing__toggle::before {
    content: "+";
    font-size: 20px;
    font-weight: 850;
}

.bates-contact-billing[open] .bates-contact-billing__toggle::before {
    content: "−";
}

.bates-contact-billing__intro {
    padding: 0 25px 18px;
    color: #69758a;
    font-size: .86rem;
}

.bates-contact-billing__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    padding: 0 25px 25px;
}

.bates-contact-company {
    min-width: 0;
    padding: 19px;
    border: 1px solid #dce4f0;
    border-radius: 15px;
    background: #f8faff;
}

.bates-contact-company h3 {
    margin: 0 0 7px;
    color: #13203c;
    font-size: 1rem;
}

.bates-contact-company > p {
    margin: 0;
    color: #6c788c;
    font-size: .78rem;
    line-height: 1.5;
    white-space: pre-line;
}

.bates-contact-company dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 15px 0 12px;
}

.bates-contact-company dl > div {
    min-width: 0;
    padding: 9px;
    border-radius: 10px;
    background: #fff;
}

.bates-contact-company dt {
    color: #7d899b;
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .06em;
}

.bates-contact-company dd {
    display: grid;
    gap: 5px;
    margin: 3px 0 0;
    color: #13203c;
    font-size: .78rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.bates-contact-company dd button {
    width: max-content;
    padding: 0;
    border: 0;
    color: #3157a7;
    background: transparent;
    font: inherit;
    font-size: .64rem;
    cursor: pointer;
}

.bates-contact-company dd button:hover {
    text-decoration: underline;
}

.bates-contact-company dd span.is-copy-fallback {
    user-select: all;
    outline: 2px solid rgba(49, 87, 167, .25);
}

.bates-contact-company__vat {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    background: #edf3fc;
    color: #3157a7;
    font-size: .62rem;
    font-weight: 900;
    text-transform: uppercase;
}

.bates-contact-company .bates-contact-company__registry {
    margin-top: 11px;
    color: #818da0;
    font-size: .68rem;
}

@media (max-width: 1080px) {
    .bates-contact-topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bates-contact-topic > span {
        min-height: 155px;
    }

    .bates-contact-billing__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .bates-contact-hero {
        padding-block: 48px;
    }

    .bates-contact-hero .service-hero-visual {
        min-height: 360px;
    }

    .bates-contact-main {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .bates-contact-people__head {
        grid-column: 1 / -1;
    }

    .bates-contact-person {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 660px) {
    .bates-contact-hero {
        padding-block: 36px 44px;
    }

    .bates-contact-hero .hero-copy h1 {
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    .bates-contact-hero .service-hero-visual {
        min-height: 300px;
    }

    .bates-contact-flow {
        padding-block: 42px 48px;
    }

    .bates-contact-topics {
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        margin: 24px 0 30px;
    }

    .bates-contact-topic > span {
        display: grid;
        min-height: 0;
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 2px 11px;
        padding: 14px;
    }

    .bates-contact-topic small {
        grid-row: 1 / 3;
        width: 34px;
        height: 34px;
        margin: 0;
    }

    .bates-contact-topic em {
        margin-top: 2px;
    }

    .bates-contact-form-card,
    .bates-contact-people {
        padding: 21px 16px;
        border-radius: 17px;
    }

    .bates-contact-inline-form .contact-form-grid,
    .bates-contact-people {
        grid-template-columns: minmax(0, 1fr);
    }

    .bates-contact-person {
        grid-template-columns: 46px minmax(0, 1fr);
        padding: 14px;
    }

    .bates-contact-person .contact-avatar {
        width: 46px;
        height: 46px;
    }

    .bates-contact-person__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .bates-contact-person__actions .button {
        width: 100%;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .bates-contact-office {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px 16px;
    }

    .bates-contact-office__icon {
        width: 42px;
        height: 42px;
    }

    .bates-contact-office .button {
        width: 100%;
        grid-column: 1 / -1;
        justify-content: center;
    }

    .bates-contact-billing > summary {
        padding: 18px 16px;
    }

    .bates-contact-billing__intro {
        padding: 0 16px 16px;
    }

    .bates-contact-billing__grid {
        padding: 0 16px 16px;
    }

    .bates-contact-company dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .bates-contact-company dl {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bates-contact-topic > span {
        transition: none;
    }

    .bates-contact-topic:hover > span {
        transform: none;
    }
}
