/* Ascenta Studio — quote.css?v=2
   报价表单样式 (contact / checkout 页)
   对应 REPORT §3.3 quote.css 2KB
*/

/* ── Contact form wrap ────────────────────────────────────── */
.contact-form-wrap {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem;
}

/* ── Quote form enhanced ─────────────────────────────────── */
.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.quote-form .form-row {
    margin-bottom: 0;
}

.quote-form .form-input {
    background: #222;
    border-color: rgba(255, 255, 255, 0.1);
}

.quote-form .form-input:focus {
    border-color: #7c9eff;
    background: #1a1a1a;
}

/* Input validation states */
.form-input.error {
    border-color: #f87171;
}

.form-input.valid {
    border-color: #4ade80;
}

/* ── Checkout form ───────────────────────────────────────── */
.checkout-form {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.checkout-form .form-input {
    background: #222;
}

.checkout-total {
    padding: 1rem 0;
    border-top: 2px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
}

.checkout-total span:first-child {
    color: #a0a0a0;
    font-size: 0.9rem;
}

/* ── Form feedback ───────────────────────────────────────── */
.form-feedback,
.checkout-feedback {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.form-feedback.success,
.checkout-feedback.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.form-feedback.error,
.checkout-feedback.error {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

/* ── Quote principles box ─────────────────────────────────── */
.contact-principles {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 1.5rem;
}

.contact-principles .principles-list li {
    font-size: 0.9rem;
}

/* ── Button states ───────────────────────────────────────── */
.form-submit,
.checkout-submit {
    position: relative;
    overflow: hidden;
}

.form-submit.loading,
.checkout-submit.loading {
    pointer-events: none;
    opacity: 0.7;
}

.form-submit.loading::after,
.checkout-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ── Responsive form ──────────────────────────────────────── */
@media (max-width: 600px) {
    .contact-form-wrap {
        padding: 1.5rem;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
