/* ── AllState Order Form (same UI as the Quote Form) ── */
.aof-wrapper {
    font-family: inherit;
    max-width: 800px;
    margin: 0 auto;
}

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

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

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

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

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

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

.aof-col input[type="text"],
.aof-col input[type="email"],
.aof-col input[type="tel"],
.aof-col input[type="date"],
.aof-col select,
.aof-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;
}

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

.aof-col select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.aof-col textarea {
    resize: vertical;
}

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

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

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

/* ── SIGNATURE ── */
.aof-sig-wrap {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    overflow: hidden;
}

.aof-sig-canvas {
    display: block;
    width: 100%;
    height: 160px;
    touch-action: none;
    cursor: crosshair;
}

.aof-sig-hint {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: #bbb;
    font-size: 15px;
    pointer-events: none;
    user-select: none;
}

.aof-sig-wrap.is-signed .aof-sig-hint {
    display: none;
}

.aof-sig-actions {
    margin-top: 8px;
}

.aof-wrapper .aof-sig-clear {
    background: #fff;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.aof-wrapper .aof-sig-clear:hover {
    border-color: #000;
    color: #000;
    background: #fff;
}

/* ── CHECKBOX ── */
.aof-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;
}

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

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

.aof-col .aof-checkbox-label span a {
    color: #000;
    text-decoration: underline;
}

/* ── HONEYPOT ── */
.aof-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

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

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

.aof-wrapper .aof-submit-btn:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
}

.aof-wrapper .aof-submit-btn:disabled {
    filter: grayscale(1) brightness(1.2);
    cursor: not-allowed;
    transform: none;
}

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

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

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

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
    .aof-form {
        padding: 18px;
    }
    .aof-col {
        min-width: 100%;
        flex: 0 0 100%;
    }
}
