/* Responsive Contact Us page. Shared inner-page foundations live in page.css. */
:root {
    --contact-shell-width: var(--site-shell-width, calc(100% - clamp(32px, 8vw, 128px)));
    --contact-shell-max-width: var(--site-shell-max-width, 1424px);
    --contact-section-space: clamp(44px, 5vw, 72px);
    --contact-grid-gap: clamp(24px, 3vw, 44px);
}

/* Hero */
.page-hero-media {
    height: clamp(76px, 7vw, 100px);
}

.page-hero {
    height: clamp(220px, 18vw, 280px);
}

.page-hero > .container {
    width: var(--contact-shell-width);
    max-width: var(--contact-shell-max-width);
    margin-right: auto;
    margin-left: auto;
}

.contact-hero-title {
    margin: 0;
    font-size: clamp(32px, 2.8vw, 40px);
    line-height: 1.2;
}

/* Page shell and heading */
.page-content-wrapper {
    top: clamp(-50px, -3.5vw, -32px);
}

.contact-wrapper {
    padding-top: var(--contact-section-space);
    padding-bottom: var(--contact-section-space);
}

.contact-wrapper > .container {
    width: var(--contact-shell-width);
    max-width: var(--contact-shell-max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: clamp(12px, 1.1vw, 16px);
    padding-left: clamp(12px, 1.1vw, 16px);
}

.page-section-title {
    margin: 0 0 clamp(8px, 1vw, 14px);
    font-size: clamp(30px, 2.65vw, 38px);
    line-height: 1.2;
}

.page-section-description {
    margin: 0;
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.4;
}

.contact-layout-row {
    align-items: stretch;
    margin-top: clamp(32px, 3.9vw, 56px) !important;
    --bs-gutter-x: var(--contact-grid-gap);
    --bs-gutter-y: var(--contact-grid-gap);
}

.contact-form-column,
.contact-office-column {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

/* Form */
.contact-form {
    display: flex;
    height: 100%;
    flex-direction: column;
    gap: clamp(14px, 1.2vw, 18px);
}

.contact-form-row {
    --bs-gutter-x: clamp(16px, 1.5vw, 22px);
    --bs-gutter-y: clamp(14px, 1.2vw, 18px);
}

.contact-form .form-group {
    margin-bottom: 0;
}

.contact-form label {
    margin-bottom: clamp(5px, 0.5vw, 7px);
    color: var(--Neutral-100, #212121);
    font-family: Poppins, sans-serif;
    font-size: clamp(15px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.5;
}

.contact-required-mark {
    margin-left: 2px;
    color: #DC3545;
    font-weight: 700;
}

.contact-form .form-control {
    height: clamp(44px, 3.5vw, 50px);
    padding: clamp(8px, 0.7vw, 10px) clamp(10px, 0.9vw, 13px);
    border: 1px solid #C8C8C8;
    border-radius: clamp(6px, 0.55vw, 8px);
    box-shadow: none;
    color: var(--Neutral-100, #212121);
    font-family: Poppins, sans-serif;
    font-size: clamp(15px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.5;
}

.contact-form .form-control::placeholder {
    color: #7C7C7C;
    opacity: 1;
}

.contact-form .form-control.is-invalid,
.contact-form.was-validated .form-control:invalid {
    border-color: #DC3545;
}

.contact-form .form-control.is-invalid:focus,
.contact-form.was-validated .form-control:invalid:focus {
    border-color: #DC3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

.contact-field-error {
    margin: 6px 0 0;
    color: #DC3545;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
}

.contact-message-row {
    min-height: 0;
    flex: 1 1 auto;
}

.contact-message-row > [class*="col-"],
.contact-message-group {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.contact-form textarea.form-control {
    min-height: clamp(220px, 19.8vw, 285px);
    flex: 1 1 auto;
    resize: vertical;
}

.contact-recaptcha-row {
    min-height: 78px;
}

.g-recaptcha {
    width: 304px;
    max-width: 100%;
    margin-top: clamp(12px, 1vw, 16px);
    transform: scale(1);
    transform-origin: left top;
}

.contact-submit-row {
    margin-top: clamp(2px, 0.5vw, 6px);
}

#submitButton {
    height: clamp(52px, 4vw, 58px);
    border-color: var(--STORE2GO-Normal, #0071BD);
    border-radius: clamp(8px, 0.8vw, 12px);
    background: var(--STORE2GO-Normal, #0071BD);
    font-family: Poppins, sans-serif;
    font-size: clamp(17px, 1.25vw, 18px);
    font-weight: 700;
    line-height: 1.3;
}

/* Office card */
.contact-card-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 556 / 376;
    border-radius: clamp(24px, 2.2vw, 32px) clamp(14px, 1.1vw, 16px) 0 0;
    object-fit: cover;
}

.contact-card {
    display: flex;
    min-height: clamp(250px, 21vw, 320px);
    flex: 1 0 auto;
    align-self: stretch;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: clamp(22px, 2.2vw, 32px);
    border-radius: 0 0 clamp(24px, 2.2vw, 32px) clamp(24px, 2.2vw, 32px);
    background: var(--Background-Element-or-Section, #DFEDF4);
}

.contact-card-title {
    margin: 0 0 clamp(10px, 1vw, 14px);
    color: var(--Grey-900, #212121);
    font-family: Inter, sans-serif;
    font-size: clamp(24px, 1.95vw, 28px);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.contact-card-description {
    margin: 0;
    color: var(--Neutral-100, #212121);
    font-family: Poppins, sans-serif;
    font-size: clamp(17px, 1.4vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.003px;
}

/* Keep both desktop columns compact and independently sized. */
@media (min-width: 992px) {
    .contact-layout-row {
        align-items: flex-start;
    }

    .contact-form {
        height: auto;
        gap: clamp(10px, 0.8vw, 12px);
    }

    .contact-message-row {
        flex: 0 0 auto;
    }

    .contact-message-row > [class*="col-"],
    .contact-message-group {
        height: auto;
    }

    .contact-form textarea.form-control {
        min-height: clamp(140px, 10.5vw, 158px);
        flex: 0 0 auto;
    }

    .contact-office-column {
        align-self: flex-start;
    }

    .contact-card {
        min-height: 0;
        flex: 0 0 auto;
        padding: clamp(20px, 1.6vw, 24px);
    }

    .contact-card-title {
        margin-bottom: clamp(6px, 0.6vw, 8px);
        font-size: clamp(22px, 1.65vw, 24px);
        line-height: 1.25;
    }

    .contact-card-description {
        font-size: clamp(16px, 1.2vw, 17px);
        line-height: 1.45;
    }

    .contact-card .contact-card-details {
        row-gap: clamp(2px, 0.3vw, 4px);
        margin-top: clamp(6px, 0.5vw, 8px);
    }
}

.contact-card-details {
    display: flex;
    flex-direction: column;
    row-gap: clamp(4px, 0.5vw, 7px);
    margin-top: clamp(8px, 0.9vw, 13px);
}

.contact-card-line {
    display: grid;
    grid-template-columns: minmax(88px, 105px) auto minmax(0, 1fr);
    align-items: baseline;
    gap: clamp(6px, 0.6vw, 9px);
}

.contact-card-label {
    min-width: 0;
}

.contact-card-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Stack office details above the form on tablet and mobile. */
@media (max-width: 991.98px) {
    .page-hero-media {
        height: clamp(68px, 10vw, 90px);
    }

    .page-hero {
        height: clamp(200px, 28vw, 250px);
    }

    .contact-layout-row {
        max-width: 760px;
        margin-right: auto;
        margin-left: auto;
    }

    .contact-office-column,
    .contact-form-column {
        width: 100%;
    }

    .contact-form-column {
        margin-top: clamp(8px, 2vw, 18px);
    }

    .contact-form {
        height: auto;
    }

    .contact-card {
        min-height: 0;
    }

    .contact-form textarea.form-control {
        min-height: clamp(200px, 32vw, 250px);
    }
}

@media (max-width: 575.98px) {
    :root {
        --contact-section-space: clamp(36px, 10vw, 48px);
        --contact-grid-gap: clamp(18px, 5vw, 24px);
    }

    .page-hero {
        height: clamp(180px, 42vw, 220px);
    }

    .contact-hero-title {
        font-size: clamp(28px, 8vw, 34px);
    }

    .contact-wrapper > .container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .contact-card-description > br {
        display: none;
    }

    .contact-card-line {
        grid-template-columns: minmax(82px, 96px) auto minmax(0, 1fr);
        font-size: clamp(15px, 4.2vw, 17px);
    }

    .contact-recaptcha-row {
        min-height: 68px;
    }

    .g-recaptcha {
        width: 304px;
        transform: scale(0.84);
        margin-bottom: -12px;
    }
}

@media (max-width: 359.98px) {
    .g-recaptcha {
        transform: scale(0.76);
        margin-bottom: -19px;
    }
}
