/**
 * Accurate Survey Enquiry Form
 * Uses inherited theme fonts and avoids global CSS conflicts.
 */
.asw-enquiry-wrap,
.asw-enquiry-wrap * {
    box-sizing: border-box;
}

.asw-enquiry-wrap {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
    font-size: var(--asw-font-size, 16px);
    line-height: 1.5;
}

.asw-enquiry-form {
    position: relative;
    padding: clamp(22px, 4vw, 38px);
    background: #fff;
    border: 1px solid rgba(18, 55, 91, 0.08);
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(20, 39, 59, 0.10);
}

.asw-form-header {
    margin-bottom: 24px;
}

.asw-form-header h2 {
    margin: 0;
    font-family: inherit;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.25;
    color: #17324d;
}

.asw-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.asw-field {
    min-width: 0;
}

.asw-full {
    grid-column: 1 / -1;
}

.asw-field label {
    display: block;
    margin: 0 0 7px;
    font-family: inherit;
    font-size: 0.94em;
    font-weight: 600;
    color: #25384b;
}

.asw-field label span {
    color: #c53030;
}

.asw-field input,
.asw-field textarea {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #cfd8e1;
    border-radius: 8px;
    outline: none;
    background: #fff;
    box-shadow: none;
    color: #1f2d3d;
    font: inherit;
    line-height: 1.45;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.asw-field textarea {
    min-height: 145px;
    resize: vertical;
}

.asw-field input:focus,
.asw-field textarea:focus {
    border-color: #2563a6;
    box-shadow: 0 0 0 3px rgba(37, 99, 166, 0.13);
}

.asw-field.has-error input,
.asw-field.has-error textarea {
    border-color: #c53030;
    background: #fffafa;
}

.asw-error {
    display: block;
    min-height: 0;
    margin-top: 5px;
    color: #b42318;
    font-size: 0.82em;
    line-height: 1.35;
}

.asw-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 8px;
    background: #173f67;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}

.asw-submit:hover,
.asw-submit:focus {
    background: #0f3152;
    color: #fff;
    box-shadow: 0 7px 18px rgba(23, 63, 103, 0.22);
}

.asw-submit:active {
    transform: translateY(1px);
}

.asw-submit:disabled {
    cursor: not-allowed;
    opacity: .75;
}

.asw-spinner {
    display: none;
    width: 17px;
    height: 17px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: asw-spin .75s linear infinite;
}

.asw-submit.is-loading .asw-spinner {
    display: inline-block;
}

@keyframes asw-spin {
    to { transform: rotate(360deg); }
}

.asw-form-response {
    display: none;
    padding: 13px 15px;
    border-radius: 8px;
    font-size: 0.92em;
    line-height: 1.5;
}

.asw-form-response.is-success {
    display: block;
    border: 1px solid #9ad6b0;
    background: #effaf3;
    color: #176b38;
}

.asw-form-response.is-error {
    display: block;
    border: 1px solid #efb1ad;
    background: #fff4f3;
    color: #9f1c13;
}

.asw-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .asw-enquiry-form {
        padding: 22px 18px;
        border-radius: 10px;
    }

    .asw-form-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .asw-full {
        grid-column: auto;
    }

    .asw-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .asw-field input,
    .asw-field textarea,
    .asw-submit {
        transition: none;
    }

    .asw-spinner {
        animation-duration: 1.5s;
    }
}
