/* Contact / audit intake form — Swasthe brand layout */
.contact-us-component {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    padding: 32px 40px;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

.contact-us-title {
    margin: 0 0 32px;
    font-size: 24px;
    line-height: 1.25;
    color: #0a1d37;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.contact-us-subtitle {
    margin: -20px 0 24px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

.contact-us-alert-wrap {
    margin-bottom: 16px;
}

.contact-us-alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.contact-us-alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.contact-us-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.contact-us-alert-error ul {
    margin: 0;
    padding-left: 18px;
}

.contact-us-success-state {
    text-align: center;
    padding: 40px 24px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
}

.contact-us-success-state__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #10b981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-us-success-state__text {
    margin: 0;
    color: #065f46;
    font-size: 15px;
    line-height: 1.65;
    font-weight: 500;
}

.contact-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.contact-us-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.contact-us-field-full {
    grid-column: 1 / -1;
}

.contact-us-label {
    font-size: 14px;
    font-weight: 700;
    color: #0a1d37;
    margin-bottom: 8px;
    display: block;
}

.contact-us-label--required::after {
    content: none;
}

.contact-us-label-req {
    color: #dc2626;
    font-weight: 700;
}

.contact-us-input,
.contact-us-select,
.contact-us-textarea {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #334155;
    background: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-us-input::placeholder,
.contact-us-textarea::placeholder {
    color: #9ca3af;
}

.contact-us-input:focus,
.contact-us-select:focus,
.contact-us-textarea:focus {
    border-color: #334155;
    box-shadow: 0 0 0 1px #334155;
}

.contact-us-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-us-select-wrap {
    position: relative;
}

.contact-us-select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.contact-us-select-chevron {
    pointer-events: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    line-height: 0;
}

.contact-us-select-chevron svg {
    width: 16px;
    height: 16px;
    display: block;
}

.contact-us-input-date {
    color: #334155;
}

.contact-us-check-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 4px;
}

.contact-us-check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #374151;
}

.contact-us-submit-wrap {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.contact-us-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    border: 0;
    border-radius: 30px;
    min-height: 52px;
    padding: 18px 24px;
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #fff;
    background: #EA722E !important;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    transition: background 0.2s, transform 0.15s;
}

.contact-us-submit:hover {
    background: #d86224;
}

.contact-us-submit:active {
    transform: translateY(1px);
}

.contact-us-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-us-submit-chevron {
    font-size: 22px;
    line-height: 1;
    font-weight: 400;
}

.contact-us-submit.is-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.contact-us-btn-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: contact-us-spin 0.8s linear infinite;
}

@keyframes contact-us-spin {
    to { transform: rotate(360deg); }
}

.contact-us-form > .contact-us-security {
    margin-top: 16px;
}

.contact-us-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 12px;
    color: #64748b;
    text-align: center;
}

.contact-us-security svg {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    flex-shrink: 0;
    color: #94a3b8;
}

/* Phone field — flag + country code dropdown + number (inline row) */
.contact-us-component .cf-phone-field {
    display: flex;
    align-items: stretch;
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
    padding: 0;
}

.contact-us-component .cf-phone-field:focus-within {
    border-color: #000;
    box-shadow: 0 0 0 1px #000;
}

.contact-us-component .cf-phone-country-wrap {
    position: relative;
    flex: 0 0 auto;
    min-width: 108px;
    max-width: 130px;
    border-right: 1px solid #e5e7eb;
    background: #fafafa;
}

.contact-us-component .cf-phone-country-display {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 26px 0 10px;
    pointer-events: none;
}

.contact-us-component .cf-phone-flag-img {
    display: block;
    width: 22px !important;
    height: 16px !important;
    max-width: 22px !important;
    max-height: 16px !important;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
    background: #fff;
    flex-shrink: 0;
    margin: 0;
}

.contact-us-component .cf-phone-flag-img[hidden] {
    display: none;
}

.contact-us-component .cf-phone-dial-display {
    font-size: 14px;
    font-weight: 600;
    color: #0a1d37;
    white-space: nowrap;
    line-height: 1;
}

.contact-us-component .cf-phone-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #6b7280;
    line-height: 0;
    pointer-events: none;
}

.contact-us-component .cf-phone-picker-trigger {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none !important;
    border-radius: 0;
    background: transparent !important;
    opacity: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
    min-height: 44px;
    box-shadow: none !important;
}

.contact-us-component .cf-phone-country-wrap:hover,
.contact-us-component .cf-phone-field:focus-within .cf-phone-country-wrap {
    background: #f3f4f6;
}

.contact-us-component .cf-phone-number {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent;
}

/* Undo CMS html_block img rules (components.css 25rem hero images) inside contact forms */
.gp-html-block .contact-us-component .cf-phone-flag-img,
.cms-html-block .contact-us-component .cf-phone-flag-img,
.home-cms-body .contact-us-component .cf-phone-flag-img {
    width: 22px !important;
    height: 16px !important;
    max-width: 22px !important;
    max-height: 16px !important;
    margin: 0;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1);
}

.contact-us-layout {
    display: grid;
    gap: 32px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.contact-us-layout--full {
    grid-template-columns: 1fr;
}

.contact-us-layout--full .contact-us-layout__aside {
    display: none;
}

.contact-us-layout--full .contact-us-layout__form {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}

.contact-us-layout--left {
    grid-template-columns: minmax(280px, 420px) 1fr;
}

.contact-us-layout--left .contact-us-layout__form {
    grid-column: 1;
}

.contact-us-layout--left .contact-us-layout__aside {
    grid-column: 2;
}

.contact-us-layout--right {
    grid-template-columns: 1fr minmax(280px, 420px);
}

.contact-us-layout--right .contact-us-layout__form {
    grid-column: 2;
}

.contact-us-layout--right .contact-us-layout__aside {
    grid-column: 1;
}

@media (max-width: 991px) {
    .contact-us-layout--left,
    .contact-us-layout--right {
        grid-template-columns: 1fr;
    }

    .contact-us-layout--left .contact-us-layout__form,
    .contact-us-layout--right .contact-us-layout__form {
        grid-column: 1;
        max-width: 720px;
        margin: 0 auto;
        width: 100%;
    }

    .contact-us-layout--left .contact-us-layout__aside,
    .contact-us-layout--right .contact-us-layout__aside {
        display: none;
    }
}

@media (max-width: 767px) {
    .contact-us-component {
        padding: 24px 20px;
    }

    .contact-us-title {
        margin-bottom: 24px;
        font-size: 22px;
    }
}

/* Contact-us page header CTA state (only when contact form exists). */
body.is-contact-us-page .gp-cms-page-header-assigned .cms-ws-header__button,
body.is-contact-us-page .gp-cms-page-header-assigned .cms-ws-header__button:visited,
body.is-contact-us-page .gp-cms-page-header-assigned .cms-ws-header__button:active,
body.is-contact-us-page .cms-ws-header.gp-cms-ws-header .cms-ws-header__button,
body.is-contact-us-page .cms-ws-header.gp-cms-ws-header .cms-ws-header__button:visited,
body.is-contact-us-page .cms-ws-header.gp-cms-ws-header .cms-ws-header__button:active,
body.is-contact-us-page .cms-ws-header__inner--zones .cms-ws-header__zone--right .cms-ws-header__button {
    background: #2d5a270f !important;
    border: 2px solid #ea722e !important;
    color: #2d5a27 !important;
    -webkit-text-fill-color: #2d5a27 !important;
    min-height: 44px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    box-shadow: none !important;
}

body.is-contact-us-page .gp-cms-page-header-assigned .cms-ws-header__button *,
body.is-contact-us-page .cms-ws-header.gp-cms-ws-header .cms-ws-header__button *,
body.is-contact-us-page .cms-ws-header__inner--zones .cms-ws-header__zone--right .cms-ws-header__button * {
    color: #2d5a27 !important;
    -webkit-text-fill-color: #2d5a27 !important;
}

body.is-contact-us-page .gp-cms-page-header-assigned .cms-ws-header__button:hover,
body.is-contact-us-page .gp-cms-page-header-assigned .cms-ws-header__button:focus,
body.is-contact-us-page .gp-cms-page-header-assigned .cms-ws-header__button:visited:hover,
body.is-contact-us-page .cms-ws-header.gp-cms-ws-header .cms-ws-header__button:hover,
body.is-contact-us-page .cms-ws-header.gp-cms-ws-header .cms-ws-header__button:focus,
body.is-contact-us-page .cms-ws-header.gp-cms-ws-header .cms-ws-header__button:visited:hover {
    background: #fff !important;
    border-color: #ea722e !important;
    color: #2d5a27 !important;
    -webkit-text-fill-color: #2d5a27 !important;
}

/* Product inquiry embed (form key: productinquiry) — 2-col grid; quantity & message full width */
body.embed-form-page--product-inquiry .embed-form-page__inner {
    max-width: none;
    margin: 0;
    padding: 0;
}

body.embed-form-page--product-inquiry .contact-us-layout,
body.embed-form-page--product-inquiry .contact-us-layout__form {
    max-width: none;
    margin: 0;
}

body.embed-form-page--product-inquiry .contact-us-component {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

body.embed-form-page--product-inquiry .contact-us-title,
body.embed-form-page--product-inquiry .contact-us-subtitle {
    display: none;
}

body.embed-form-page--product-inquiry .contact-us-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px 20px !important;
}

body.embed-form-page--product-inquiry .contact-us-field-full {
    grid-column: auto !important;
}

body.embed-form-page--product-inquiry .contact-us-field:has(textarea),
body.embed-form-page--product-inquiry .contact-us-field[data-field="message"],
body.embed-form-page--product-inquiry .contact-us-field[data-field="estimated_quantity"],
body.embed-form-page--product-inquiry .contact-us-field[data-field*="quantity"] {
    grid-column: 1 / -1 !important;
}

body.embed-form-page--product-inquiry .contact-us-field[data-field="selected_product"],
body.embed-form-page--product-inquiry .contact-us-field[data-field="product_name"],
body.embed-form-page--product-inquiry .contact-us-field[data-field="product"],
body.embed-form-page--product-inquiry .contact-us-field[data-field="inquiry_product"] {
    display: none;
}

body.embed-form-page--product-inquiry .contact-us-submit-wrap,
body.embed-form-page--product-inquiry .contact-us-security,
body.embed-form-page--product-inquiry .contact-us-alert-wrap {
    grid-column: 1 / -1;
}

body.embed-form-page--product-inquiry .contact-us-label {
    font-size: 14px;
    margin-bottom: 8px;
}

body.embed-form-page--product-inquiry .contact-us-input,
body.embed-form-page--product-inquiry .contact-us-select,
body.embed-form-page--product-inquiry .contact-us-textarea {
    padding: 12px 14px;
    font-size: 14px;
}

body.embed-form-page--product-inquiry .contact-us-input:focus,
body.embed-form-page--product-inquiry .contact-us-select:focus,
body.embed-form-page--product-inquiry .contact-us-textarea:focus {
    outline: none;
    border-color: #2d5a27 !important;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1) !important;
}

body.embed-form-page--product-inquiry .contact-us-component .cf-phone-field:focus-within {
    border-color: #2d5a27 !important;
    box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1) !important;
}

body.embed-form-page--product-inquiry .contact-us-component .cf-phone-number:focus {
    border-color: transparent !important;
    box-shadow: none !important;
}

body.embed-form-page--product-inquiry .contact-us-submit-wrap {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
}

body.embed-form-page--product-inquiry .contact-us-submit {
    width: auto !important;
    min-height: 35px;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 15px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

body.embed-form-page--product-inquiry .contact-us-submit-chevron {
    font-size: 18px;
}

body.embed-form-page--product-inquiry .contact-us-security {
    justify-content: flex-end;
    text-align: right;
    margin-top: 10px;
}

@media (max-width: 600px) {
    body.embed-form-page--product-inquiry .contact-us-grid {
        grid-template-columns: 1fr;
    }

    body.embed-form-page--product-inquiry .contact-us-field-full,
    body.embed-form-page--product-inquiry .contact-us-field:has(textarea),
    body.embed-form-page--product-inquiry .contact-us-field[data-field="message"],
    body.embed-form-page--product-inquiry .contact-us-field[data-field="estimated_quantity"],
    body.embed-form-page--product-inquiry .contact-us-field[data-field*="quantity"] {
        grid-column: 1 / -1;
    }
}
