/* 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: #b9860b;
    box-shadow: 0 0 0 1px #b9860b;
}

.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: 6px;
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    background: #b9860b;
    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: #9a7209;
}

.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 — merged country code + number in one input */
.contact-us-component .cf-phone-field {
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    overflow: visible;
}

.contact-us-component .cf-phone-field:focus-within {
    border-color: #b9860b;
    box-shadow: 0 0 0 1px #b9860b;
}

.contact-us-component .cf-phone-country-wrap {
    border-right: 1px solid #e5e7eb;
}

.contact-us-component .cf-phone-picker-trigger {
    border: none;
    border-radius: 0;
    background: transparent !important;
    min-height: 44px;
    padding: 8px 10px;
    box-shadow: none;
}

.contact-us-component .cf-phone-picker-trigger:hover {
    background: #f8fafc !important;
}

.contact-us-component .cf-phone-number {
    margin-bottom: 0 !important;
    border: none !important;
    border-radius: 0;
    box-shadow: none !important;
    background: transparent;
}

.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;
    }
}
