/* ── AllState Quote Form ── */
.aqf-wrapper {
    font-family: inherit;
    max-width: 800px;
    margin: 0 auto;
}

/* ── TABS ── */
.aqf-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
}

.aqf-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    transition: all 0.2s ease;
}

.aqf-tab-btn:hover {
    border-color: #000;
    color: #000;
}

.aqf-tab-btn.active {
    background: #000;
    border-color: #000;
    color: #fff;
}

.aqf-tab-btn svg {
    width: 22px;
    height: 22px;
    fill: #555;
    transition: fill 0.2s;
}

.aqf-tab-btn:hover svg {
    fill: #000;
}

.aqf-tab-btn.active svg {
    fill: #fff;
}

/* ── FORM ── */
.aqf-form {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.aqf-row {
    display: flex;
    gap: 18px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.aqf-col {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.aqf-col.aqf-full {
    flex: 0 0 100%;
    width: 100%;
}

.aqf-col label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.aqf-col label span {
    color: #e31e24;
}

.aqf-col input[type="text"],
.aqf-col input[type="email"],
.aqf-col input[type="tel"],
.aqf-col input[type="date"],
.aqf-col select,
.aqf-col textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.aqf-col input:focus,
.aqf-col select:focus,
.aqf-col textarea:focus {
    outline: none;
    border-color: #e31e24;
    background: #fff;
}

.aqf-col textarea {
    resize: vertical;
}

/* ── RADIO ── */
.aqf-radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px 0;
}

.aqf-radio-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 400 !important;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 0 !important;
}

.aqf-radio-group input[type="radio"] {
    accent-color: #e31e24;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ── CHECKBOX ── */
.aqf-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #555;
    font-weight: 400 !important;
    margin-bottom: 10px !important;
    cursor: pointer;
    line-height: 1.5;
}

.aqf-checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    accent-color: #e31e24;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    cursor: pointer;
}

.aqf-col .aqf-checkbox-label span {
    color: #000;
}

.aqf-col .aqf-checkbox-label span a {
    color: #000;
}

.aqf-checkbox-label a {
    color: #e31e24;
    text-decoration: underline;
}

/* ── SUBMIT ── */
.aqf-submit-wrap {
    text-align: center;
    margin-top: 10px;
}

.aqf-submit-btn {
    background: #e31e24;
    color: #fff;
    border: none;
    padding: 14px 48px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.5px;
}

.aqf-submit-btn:hover {
    background: #c01a1f;
    transform: translateY(-1px);
}

.aqf-submit-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
    transform: none;
}

/* ── MESSAGE ── */
.aqf-message {
    padding: 14px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
}

.aqf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.aqf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .aqf-tab-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    .aqf-form {
        padding: 18px;
    }
    .aqf-col {
        min-width: 100%;
        flex: 0 0 100%;
    }
}

/* ── TABS: selected = black, centered (high specificity to beat theme/Elementor button styles) ── */
.aqf-wrapper .aqf-tabs {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.aqf-wrapper .aqf-tabs .aqf-tab-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.aqf-wrapper .aqf-tabs .aqf-tab-btn.active,
.aqf-wrapper .aqf-tabs .aqf-tab-btn.active:hover,
.aqf-wrapper .aqf-tabs .aqf-tab-btn.active:focus {
    background: #000 !important;
    background-color: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
}

.aqf-wrapper .aqf-tabs .aqf-tab-btn.active svg,
.aqf-wrapper .aqf-tabs .aqf-tab-btn.active:hover svg {
    fill: #fff !important;
}

.aqf-wrapper .aqf-tabs .aqf-tab-btn:not(.active):hover,
.aqf-wrapper .aqf-tabs .aqf-tab-btn:not(.active):focus {
    background: #fff !important;
    border-color: #000 !important;
    color: #000 !important;
}

.aqf-wrapper .aqf-tabs .aqf-tab-btn:not(.active):hover svg {
    fill: #000 !important;
}
