/* ==========================================================================
   Quote Request Form Styles
   ========================================================================== */

.quote-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: var(--sce-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-2xl);
}

.quote-form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.quote-form-header h2 {
    margin-bottom: var(--space-xs);
}

.quote-form-header p {
    color: var(--sce-gray);
}

/* ── Conditional field (cake details) ── */
.form-conditional {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
    margin-top: 0;
}

.form-conditional.is-visible {
    max-height: 200px;
    opacity: 1;
    margin-top: var(--space-md);
}

/* ── Radio group ── */
.radio-group {
    display: flex;
    gap: var(--space-md);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.radio-option input[type="radio"] {
    accent-color: var(--sce-pink);
    width: 18px;
    height: 18px;
}

/* ── Form submit area ── */
.form-submit {
    text-align: center;
    margin-top: var(--space-xl);
}

.form-submit .btn {
    min-width: 200px;
}

/* ── Loading spinner ── */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--sce-white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ── Success / Error Messages ── */
.form-message {
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.is-visible {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message-success {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.form-message-error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

/* ── Quote form on front page (compact) ── */
.front-page-quote .quote-form-wrapper {
    box-shadow: none;
    padding: 0;
    background: transparent;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .quote-form-wrapper {
        padding: var(--space-lg);
    }

    .radio-group {
        flex-direction: column;
        gap: var(--space-sm);
    }
}
