/* =========================================================
   MAHIDHARA CONTACT PAGE REDESIGN
   Scoped to .contact-page-v2 / .dc-contact-page.
========================================================= */

.contact-page-v2 {
    --dc-green: #075f59;
    --dc-green-dark: #005b53;
    --dc-green-deep: #005e55;
    --dc-red: #e70727;
    --dc-text: #454545;
    --dc-muted: #777;
    --dc-page: #ffffff;
    --dc-shell: 1140px;
    --dc-radius: 28px;
    background: var(--dc-page);
    color: var(--dc-text);
}

.contact-page-v2 main,
.contact-page-v2 section {
    max-width: 100%;
}

.contact-page-v2 .dc-contact-shell {
    /*width: min(var(--dc-shell), calc(100% - 40px));*/
    margin-inline: auto;
}

.contact-page-v2 .dc-contact-section-title {
    text-align: center;
}

.contact-page-v2 .dc-contact-section-title > p {
    margin: 0 0 8px;
    color: var(--dc-green);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-page-v2 .dc-contact-section-title h2 {
    margin: 0;
    color: var(--dc-green);
    font-size: 45px;
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1.02;
}


.contact-page-v2 .dc-contact-section-title h2 span {
    color: var(--dc-red);
    font-weight: 600;
    
}

/* HERO */
.dc-contact-hero {
    padding: 54px 0 110px;
}

.dc-contact-hero .dc-contact-shell {
    position: relative;
}

.dc-contact-hero-media {
    width: calc(100% - 120px);
    margin-left: auto;
    overflow: hidden;
    border-radius: 28px;
    background:
        linear-gradient(135deg, #d9e6e3, #f4f2eb);
    box-shadow: 0 22px 54px rgba(7, 95, 89, 0.10);
}

.dc-contact-hero-media img {
    display: block;
    width: 100%;
    height: clamp(330px, 34vw, 455px);
    object-fit: cover;
}

.dc-contact-hero-panel {
    position: absolute;
    left: 0;
    bottom: -58px;
    width: min(510px, 48%);
    min-height: 158px;
    padding: 30px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 0 26px 0;
    color: #ffffff;
    background:
        linear-gradient(
            105deg,
            rgba(228, 189, 139, 0.95) 0%,
            rgba(230, 190, 139, 0.78) 55%,
            rgba(255, 255, 255, 0.64) 100%
        );
    box-shadow: 0 18px 44px rgba(130, 81, 31, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dc-contact-hero-panel .dc-contact-kicker {
    margin: 0 0 2px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.dc-contact-hero-panel h1 {
    margin: 0;
    font-size: clamp(50px, 5vw, 76px);
    font-style: italic;
    font-weight: 300;
    letter-spacing: -0.05em;
    line-height: 1;
}

/* OFFICE CARDS */
.dc-contact-offices {
    padding: 96px 0 110px;
}

.dc-office-grid {
    margin-top: 72px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 70px;
}

.dc-office-card {
    position: relative;
    padding-top: 42px;
}

.dc-office-pill {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    width: min(270px, calc(100% - 34px));
    min-height: 56px;
    padding: 12px 20px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--dc-red);
    background:
        linear-gradient(
            180deg,
            rgba(244, 249, 248, 0.98),
            rgba(201, 220, 216, 0.95)
        );
    box-shadow:
        0 10px 22px rgba(7, 95, 89, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 600;
    transform: translateX(-50%);
}

.dc-office-card-body {
    min-height: 310px;
    padding: 66px 40px 30px;
    border-radius: 10px;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 0 45%,
            rgba(255, 255, 255, 0.10),
            transparent 45%
        ),
        var(--dc-green-deep);
    box-shadow: 0 16px 34px rgba(0, 73, 66, 0.12);
}

.dc-office-address {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.62;
}

.dc-office-list {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 10px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.55;
}

.dc-office-list > span {
    color: rgba(255, 255, 255, 0.70);
}

.dc-office-list a {
    display: block;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.dc-office-directions {
    width: max-content;
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
}

.dc-office-directions span {
    color: var(--dc-red);
    font-size: 18px;
}

/* FORM */
.dc-contact-form-section {
    padding: 72px 0 100px;
    background: #ffffff;
}

.dc-contact-form-heading {
    margin-bottom: 48px;
}

.dc-contact-form {
    width: min(1060px, 100%);
    margin-inline: auto;
}

.dc-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 92px;
    row-gap: 32px;
}

.dc-line-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    border-bottom: 1px solid rgba(7, 95, 89, 0.46);
}

.dc-line-field > span {
    color: var(--dc-green);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.dc-line-field input,
.dc-line-field select,
.dc-line-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 0 4px 10px 0;
    border: 0;
    outline: 0;
    color: var(--dc-text);
    background: transparent;
    font: inherit;
    font-size: 15px;
}

.dc-line-field textarea {
    min-height: 76px;
    resize: vertical;
}

.dc-line-field input::placeholder,
.dc-line-field textarea::placeholder {
    color: rgba(69, 69, 69, 0.42);
}

.dc-line-field select {
    appearance: none;
    -webkit-appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--dc-red) 50%)
        calc(100% - 12px) calc(50% + 1px) / 5px 5px no-repeat,
        linear-gradient(135deg, var(--dc-red) 50%, transparent 50%)
        calc(100% - 7px) calc(50% + 1px) / 5px 5px no-repeat;
}

.dc-line-field:focus-within {
    border-bottom-color: var(--dc-red);
}

.dc-phone-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 36px;
}

.dc-message-field {
    grid-column: 2;
}

.dc-form-submit {
    width: min(340px, 100%);
    min-height: 46px;
    margin: 52px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--dc-red);
    box-shadow: 0 14px 30px rgba(231, 7, 39, 0.22);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.dc-form-submit:hover,
.dc-form-submit:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(231, 7, 39, 0.30);
    outline: none;
}

.dc-form-message {
    width: min(1060px, 100%);
    margin: 0 auto 30px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
}

.dc-form-success {
    color: #075f59;
    background: rgba(7, 95, 89, 0.09);
}

.dc-form-error {
    color: #a30018;
    background: rgba(231, 7, 39, 0.09);
}

/* MAP */
.dc-map-section {
    padding: 20px 0 92px;
}

.dc-map-frame {
    height: clamp(300px, 31vw, 430px);
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(7, 95, 89, 0.08);
}

.dc-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.75) brightness(1.08);
}

/* PROJECT LOGO STRIP */
.dc-projects-strip {
    padding: 10px 0 90px;
}

.dc-projects-strip .dc-contact-section-title {
    margin-bottom: 64px;
}

.dc-project-carousel {
    overflow: hidden;
}

.dc-project-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
}

.dc-project-viewport::-webkit-scrollbar {
    display: none;
}

.dc-project-track {
    display: flex;
    min-width: max-content;
    background: var(--dc-green-deep);
}

.dc-project-logo {
    flex: 0 0 290px;
    min-height: 150px;
    padding: 26px 0px;
    display: grid;
    place-items: center;
    scroll-snap-align: center;
    /*opacity: 0.68;*/
    transform: scale(0.92);
    transition:
        opacity 0.35s ease,
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-project-logo.is-active {
    opacity: 1;
    transform: scale(1);
}

.dc-project-logo img {
    max-width: 300px;
    max-height: 96px;
    object-fit: contain;
}

.dc-project-logo-fallback {
    color: #ffffff;
    text-align: center;
}

.dc-project-logo-fallback strong {
    display: block;
    font-size: 22px;
}

.dc-project-logo-fallback small {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
}

.dc-project-controls {
    width: min(1290px, calc(100% - 50px));
    margin: 52px auto 0;
    display: grid;
    grid-template-columns: 70px 1fr 70px;
    align-items: center;
    gap: 24px;
}

.dc-project-controls button {
    width: 70px;
    height: 46px;
    border: 0;
    color: #111111;
    background: transparent;
    font-size: 30px;
    cursor: pointer;
}

.dc-project-progress {
    height: 1px;
    overflow: hidden;
    background: rgba(69, 69, 69, 0.32);
}

.dc-project-progress span {
    display: block;
    width: 20%;
    height: 2px;
    background: var(--dc-red);
    transform: translateX(0);
    transition:
        width 0.35s ease,
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* LEGACY */
.dc-legacy-banner {
    padding: 30px 0 110px;
}

.dc-legacy-media {
    position: relative;
    overflow: visible;
}

.dc-legacy-media > img {
    display: block;
    width: 100%;
    height: clamp(440px, 48vw, 610px);
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(7, 95, 89, 0.11);
}

.dc-legacy-panel {
    position: absolute;
    top: -36px;
    left: 30px;
    width: min(570px, 52%);
    min-height: 260px;
    padding: 48px 48px 38px;
    border-radius: 0 0 22px 0;
    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.96),
            rgba(249, 239, 224, 0.85) 52%,
            rgba(255, 255, 255, 0.40)
        );
    box-shadow: 0 20px 42px rgba(94, 63, 29, 0.10);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.dc-legacy-panel h2 {
    margin: 0;
    color: var(--dc-green);
    font-size: clamp(44px, 4vw, 65px);
    font-weight: 300;
    letter-spacing: -0.045em;
    line-height: 0.95;
}

.dc-legacy-panel p {
    margin: 28px 0 0;
    color: var(--dc-red);
    font-size: clamp(36px, 3.6vw, 58px);
    font-weight: 300;
    letter-spacing: -0.04em;
}

.dc-legacy-panel strong {
    font-weight: 700;
}

/* ANIMATION */
[data-contact-reveal] {
    opacity: 0;
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform;
}

[data-contact-reveal="up"] {
    transform: translate3d(0, 28px, 0);
}

[data-contact-reveal="left"] {
    transform: translate3d(-34px, 0, 0);
}

[data-contact-reveal="scale"] {
    transform: translate3d(0, 20px, 0) scale(0.975);
}

[data-contact-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

[data-title-animate] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.82s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-title-animate].is-title-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* FLOATING ACTIONS */
.dc-floating-actions {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 1500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dc-floating-whatsapp,
.dc-back-top {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    /*box-shadow: 0 14px 28px rgba(0, 0, 0, 0.14);*/
    cursor: pointer;
}

.dc-floating-whatsapp {
    color: #ffffff;
    /*background: #25d366;*/
}

.dc-floating-whatsapp svg {
    width: 25px;
    fill: currentColor;
}

.dc-back-top {
    color: #ffffff;
    background: var(--dc-green);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.25s ease;
}

.dc-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* TABLET */
@media (max-width: 1024px) {
    .dc-contact-hero-media {
        width: calc(100% - 80px);
    }

    .dc-contact-hero-panel {
        width: min(470px, 56%);
    }

    .dc-office-grid {
        gap: 28px;
    }

    .dc-office-card-body {
        padding-inline: 28px;
    }

    .dc-form-grid {
        column-gap: 44px;
    }
}

/* MOBILE */
@media (max-width: 767px) {
    /*.contact-page-v2 .dc-contact-shell {*/
    /*    width: calc(100% - 28px);*/
    /*}*/

    .dc-contact-hero {
        padding: 24px 0 74px;
    }

    .dc-contact-hero-media {
        width: 100%;
        margin: 0;
        border-radius: 20px;
    }

    .dc-contact-hero-media img {
        height: 300px;
    }

    .dc-contact-hero-panel {
        position: relative;
        left: auto;
        bottom: auto;
        width: calc(100% - 28px);
        min-height: 132px;
        margin: -54px auto 0;
        padding: 24px 26px;
        border-radius: 0 0 20px 0;
    }

    .dc-contact-hero-panel h1 {
        font-size: 48px;
    }

    .dc-contact-offices {
        padding: 62px 0 74px;
    }

    .contact-page-v2 .dc-contact-section-title h2 {
        font-size: 40px;
    }

    .dc-office-grid {
        margin-top: 50px;
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .dc-office-card-body {
        min-height: 0;
        padding: 64px 24px 26px;
    }

    .dc-contact-form-section {
        padding: 56px 0 72px;
    }

    .dc-form-grid {
        grid-template-columns: 1fr;
        row-gap: 28px;
    }

    .dc-phone-row {
        grid-template-columns: 125px minmax(0, 1fr);
        gap: 20px;
    }

    .dc-message-field {
        grid-column: auto;
    }

    .dc-form-submit {
        margin-top: 40px;
    }

    .dc-map-section {
        padding-bottom: 72px;
    }

    .dc-map-frame {
        height: 310px;
    }

    .dc-projects-strip .dc-contact-section-title {
        margin-bottom: 42px;
    }

    .dc-project-logo {
        flex-basis: 230px;
        min-height: 130px;
        padding: 22px 26px;
    }

    .dc-project-controls {
        width: calc(100% - 28px);
        margin-top: 34px;
        grid-template-columns: 48px 1fr 48px;
        gap: 14px;
    }

    .dc-project-controls button {
        width: 48px;
    }

    .dc-legacy-banner {
        padding-bottom: 80px;
    }

    .dc-legacy-media > img {
        height: 500px;
        border-radius: 20px;
    }

    .dc-legacy-panel {
        top: 20px;
        left: 20px;
        width: calc(100% - 40px);
        min-height: 190px;
        padding: 30px 28px 26px;
        border-radius: 0 0 18px 0;
    }

    .dc-legacy-panel h2 {
        font-size: 43px;
    }

    .dc-legacy-panel p {
        margin-top: 20px;
        font-size: 37px;
    }
}

/* SMALL MOBILE */
@media (max-width: 420px) {
    .dc-contact-hero-media img {
        height: 245px;
    }

    .dc-contact-hero-panel h1 {
        font-size: 42px;
    }

    .contact-page-v2 .dc-contact-section-title h2 {
        font-size: 34px;
    }

    .dc-phone-row {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .dc-project-logo {
        flex-basis: 205px;
    }

    .dc-legacy-media > img {
        height: 450px;
    }

    .dc-legacy-panel h2 {
        font-size: 36px;
    }

    .dc-legacy-panel p {
        font-size: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-contact-reveal],
    [data-title-animate],
    .dc-project-logo,
    .dc-form-submit,
    .dc-back-top {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Image fallbacks prevent broken-image icons when assets are not uploaded yet. */
.dc-contact-hero-media.is-image-missing,
.dc-legacy-media.is-image-missing {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 28%, rgba(255,255,255,.35), transparent 18%),
        linear-gradient(135deg, #d7e4e1 0%, #efe7da 48%, #c9d8d4 100%);
}

.dc-contact-hero-media.is-image-missing::before {
    content: "Contact hero image";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(7,95,89,.62);
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.dc-legacy-media.is-image-missing::before {
    content: "Legacy banner image";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(7,95,89,.62);
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
}






/* new css */


/* =========================================================
   CONTACT PAGE — REFERENCE OFFICE + FORM SECTION
   Loaded after contact.css to avoid conflicts.
========================================================= */

.contact-page-v2 {
    --ref-green: #075f59;
    --ref-green-dark: #075c56;
    --ref-red: #ed0925;
    --ref-line: #505050;
}

/* Section */

.ref-contact-section {
    padding: 22px 0 72px;
    overflow: hidden;
    background: #ffffff;
}

.ref-contact-container {
    width: min(1188px, calc(100% - 40px));
    margin: 0 auto;
}

/* Heading */

.ref-contact-heading {
    margin-bottom: 74px;
    text-align: center;
}

.ref-contact-heading h2 {
    margin: 0;
    color: var(--ref-green);
    font-size: 45px;
    font-weight: 400;
    letter-spacing: -0.052em;
    line-height: 1.08;
}

.ref-contact-heading h2 span {
    color: var(--ref-red);
}

/* Office grid */

.ref-office-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 50px;
    align-items: stretch;
}

.ref-office-wrap {
    position: relative;
    min-width: 0;
    height: 100%;
    padding-top: 34px;
}

.ref-office-pill {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 50%;
    width: min(238px, calc(100% - 54px));
    min-height: 49px;
    margin: 0;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--ref-red);
    background:
        linear-gradient(
            180deg,
            rgba(239, 247, 246, 0.99) 0%,
            rgba(207, 225, 223, 0.98) 100%
        );
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transform: translateX(-50%);
}

.ref-office-card {
    position: relative;
    height: 100%;
    min-height: 208px;
    padding: 39px 39px 26px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--ref-green-dark);
    box-shadow: 0 12px 28px rgba(7, 95, 89, 0.07);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.ref-office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(7, 95, 89, 0.16);
}

.ref-office-pattern {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.ref-office-pattern::before {
    position: absolute;
    top: 18px;
    left: -26px;
    width: 460px;
    height: 1px;
    content: "";
    background: rgba(255, 255, 255, 0.14);
    transform: rotate(15deg);
    box-shadow:
        0 66px 0 rgba(255, 255, 255, 0.12),
        0 132px 0 rgba(255, 255, 255, 0.10);
}

.ref-office-pattern::after {
    position: absolute;
    right: -90px;
    bottom: -130px;
    width: 340px;
    height: 230px;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
}

.ref-office-content {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: 14px;
    font-style: normal;
    font-weight: 300;
    line-height: 1.56;
}

.ref-office-address {
    display: block;
}

.ref-office-line {
    display: grid;
    grid-template-columns: 48px 8px minmax(0, 1fr);
    align-items: start;
}

.ref-office-line strong {
    font-weight: 300;
}

.ref-office-links {
    min-width: 0;
}

.ref-office-content a {
    color: inherit;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.ref-office-content a:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Form */

.ref-contact-form-area {
    width: min(926px, 100%);
    margin: 94px auto 0;
}

.ref-form-message {
    margin: 0 auto 28px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}

.ref-form-success {
    color: var(--ref-green);
    background: rgba(7, 95, 89, 0.09);
}

.ref-form-error {
    color: #a30018;
    background: rgba(237, 9, 37, 0.09);
}

.ref-contact-form {
    width: 100%;
}

.ref-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 30px;
}

.ref-line-field {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
}

.ref-line-field > span {
    display: block;
    margin: 0 0 3px;
    color: var(--ref-green);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.3;
    text-transform: uppercase;
}

.ref-line-field input,
.ref-line-field select,
.ref-line-field textarea {
    display: block;
    width: 100%;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 20px 7px 0;
    border: 0;
    border-bottom: 1px solid var(--ref-line);
    border-radius: 0;
    outline: 0;
    color: #222222;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
}

.ref-line-field textarea {
    resize: none;
}

.ref-line-field input:focus,
.ref-line-field select:focus,
.ref-line-field textarea:focus {
    border-bottom-color: var(--ref-red);
    box-shadow: 0 1px 0 var(--ref-red);
}

.ref-line-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background:
        linear-gradient(45deg, transparent 50%, var(--ref-red) 50%)
        calc(100% - 8px) 15px / 5px 5px no-repeat,
        linear-gradient(135deg, var(--ref-red) 50%, transparent 50%)
        calc(100% - 3px) 15px / 5px 5px no-repeat;
}

.ref-phone-group {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 34px;
}

.ref-submit-wrap {
    margin-top: 64px;
    text-align: center;
}

.ref-contact-submit {
    width: min(302px, 100%);
    min-height: 22px;
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--ref-red);
    box-shadow: 0 9px 20px rgba(237, 9, 37, 0.16);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.ref-contact-submit:hover,
.ref-contact-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 13px 28px rgba(237, 9, 37, 0.24);
    outline: none;
}

/* Existing reveal attributes */

[data-contact-reveal] {
    transition-delay: var(--reveal-delay, 0ms);
}

/* Medium desktop */

@media (max-width: 1199.98px) {
    .ref-contact-container {
        width: min(1060px, calc(100% - 36px));
    }

    .ref-office-grid {
        gap: 34px;
    }

    .ref-office-card {
        padding-right: 30px;
        padding-left: 30px;
    }
}

/* Tablet */

@media (max-width: 991.98px) {
    .ref-contact-heading {
        margin-bottom: 48px;
    }

    .ref-office-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .ref-office-wrap:last-child {
        grid-column: 1 / -1;
        width: calc((100% - 28px) / 2);
        justify-self: center;
    }

    .ref-contact-form-area {
        margin-top: 70px;
    }

    .ref-form-grid {
        column-gap: 70px;
    }
}

/* Mobile */

@media (max-width: 767.98px) {
    .ref-contact-section {
        padding: 30px 0 54px;
    }

    .ref-contact-container {
        width: calc(100% - 28px);
    }

    .ref-contact-heading {
        margin-bottom: 34px;
    }

    .ref-contact-heading h2 {
        font-size: 40px;
    }

    .ref-office-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ref-office-wrap:last-child {
        grid-column: auto;
        width: 100%;
    }

    .ref-office-wrap {
        padding-top: 28px;
    }

    .ref-office-pill {
        min-height: 46px;
        font-size: 18px;
    }

    .ref-office-card {
        min-height: auto;
        padding: 40px 24px 25px;
        border-radius: 10px;
    }

    .ref-contact-form-area {
        margin-top: 56px;
    }

    .ref-form-grid {
        grid-template-columns: 1fr;
        row-gap: 27px;
        column-gap: 0;
    }

    .ref-submit-wrap {
        margin-top: 44px;
    }
}

/* Small mobile */

@media (max-width: 479.98px) {
    .ref-contact-heading h2 {
        font-size: 34px;
    }

    .ref-office-content {
        font-size: 13px;
        line-height: 1.6;
    }

    .ref-phone-group {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ref-contact-submit {
        min-height: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ref-office-card,
    .ref-contact-submit {
        transform: none !important;
        transition: none !important;
    }
}


