/* ── Quote Form Widget ── */

.sqf-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 36px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 720px;
    margin: 0 auto;
}

/* Header */
.sqf-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.3;
}

.sqf-subtitle {
    font-size: 15px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 32px;
}

/* Grid rows */
.sqf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

.sqf-row--full {
    grid-template-columns: 1fr;
}

.sqf-col {
    display: flex;
    flex-direction: column;
}

/* Labels */
.sqf-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.sqf-req {
    color: #ef4444;
}

/* Inputs & Selects */
.sqf-input,
.sqf-select,
.sqf-textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #1f2937;
    background-color: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.sqf-input::placeholder,
.sqf-textarea::placeholder {
    color: #9ca3af;
}

.sqf-input:focus,
.sqf-select:focus,
.sqf-textarea:focus {
    border-color: #c8922a;
    box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.15);
    background-color: #fff;
}

.sqf-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.sqf-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
.sqf-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 28px;
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #c8922a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
    font-family: inherit;
}

.sqf-submit:hover {
    background-color: #b07e1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(200, 146, 42, 0.3);
}

.sqf-submit:active {
    transform: translateY(0);
}

.sqf-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Spinner */
.sqf-spinner {
    animation: sqf-spin 1s linear infinite;
    display: inline-flex;
}

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

/* Message box */
.sqf-message-box {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

.sqf-message-box--success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.sqf-message-box--error {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Validation */
.sqf-input.sqf-invalid,
.sqf-select.sqf-invalid,
.sqf-textarea.sqf-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Responsive */
@media (max-width: 600px) {
    .sqf-card {
        padding: 28px 20px;
    }

    .sqf-row {
        grid-template-columns: 1fr;
    }

    .sqf-title {
        font-size: 22px;
    }
}
