/* ============================================================
   VIVA Quote Page – WooCommerce edition
   ============================================================ */

.viva-quote-page {
    padding: 60px 20px 80px;
    min-height: 80vh;
    background: #fff;
}

.viva-quote-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 50px;
    align-items: start;
}

.viva-quote-page-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: 10px;
}

.viva-quote-page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1d1d1d;
    margin: 0 0 10px;
}

.viva-quote-page-header p {
    color: #777;
    font-size: 1.05rem;
    margin: 0;
}

/* ── Cart Items Column ────────────────────────────────────── */
.viva-quote-cart-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1d;
    margin: 0 0 20px;
}

.viva-quote-empty {
    text-align: center;
    padding: 60px 20px;
    color: #777;
}

.viva-quote-empty p { margin: 0 0 16px; }

.viva-quote-empty a {
    display: inline-block;
    padding: 12px 28px;
    background: #1d1d1d;
    color: #fff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
}

.viva-quote-empty a:hover { background: #444; }

/* Cart item card */
.viva-quote-item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.viva-quote-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.viva-quote-item-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1d1d1d;
    margin: 0 0 8px;
}

.viva-quote-item-remove {
    font-size: 13px;
    color: #c0392b;
    cursor: pointer;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    display: inline-block;
    margin-top: 6px;
}

.viva-quote-item-qty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.viva-quote-item-qty label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.viva-quote-item-qty input {
    width: 60px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
}

/* ── Form Column ─────────────────────────────────────────── */
.viva-quote-form-section {
    background: #f7f7f7;
    border-radius: 16px;
    padding: 36px 32px;
    position: sticky;
    top: 100px;
}

.viva-quote-form-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1d1d1d;
    margin: 0 0 24px;
}

.viva-form-row {
    margin-bottom: 18px;
}

.viva-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.viva-form-row input,
.viva-form-row textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    background: #fff;
    color: #1d1d1d;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.viva-form-row input:focus,
.viva-form-row textarea:focus {
    outline: none;
    border-color: #1d1d1d;
}

.viva-form-row textarea {
    height: 100px;
    resize: vertical;
}

.viva-form-honeypot {
    display: none;
}

.viva-submit-btn {
    width: 100%;
    padding: 16px;
    background: #1d1d1d;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 8px;
}

.viva-submit-btn:hover { background: #444; }
.viva-submit-btn:disabled { background: #aaa; cursor: not-allowed; }

/* Messages */
.viva-form-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #b91c1c;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
    display: none;
}

.viva-form-success {
    text-align: center;
    padding: 40px 20px;
    display: none;
}

.viva-form-success h3 {
    font-size: 1.5rem;
    color: #1d1d1d;
    margin: 0 0 12px;
}

.viva-form-success p {
    color: #555;
    margin: 0 0 8px;
}

.viva-quote-ref {
    display: inline-block;
    background: #1d1d1d;
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 12px;
    font-size: 14px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .viva-quote-container {
        grid-template-columns: 1fr;
    }
    .viva-quote-form-section {
        position: static;
    }
}

@media (max-width: 540px) {
    .viva-quote-page { padding: 40px 16px 60px; }
    .viva-quote-page-header h1 { font-size: 1.8rem; }
    .viva-quote-item { grid-template-columns: 70px 1fr; }
    .viva-quote-item-qty { display: none; }
}
