/* ============================================================
   FORMS — Form cards, inputs, toggles, proposal/quote card
   ============================================================ */

/* ========== FORM CARDS ========== */
.card { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.card-flat { padding: 0; border: none; background: none; }

/* ========== FORM INPUTS (elegant underline style) ========== */
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field-label .req { color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }

.input {
    width: 100%; padding: 10px 0; font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 400;
    color: var(--charcoal); background: transparent; border: none; border-bottom: 1.5px solid var(--border);
    transition: border-color 0.2s; outline: none;
}
.input::placeholder { color: var(--border); font-weight: 300; }
.input:focus { border-color: var(--gold); }
.input.valid { border-color: var(--green); }
.input.invalid { border-color: var(--red); }
select.input { cursor: pointer; -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8960c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 2px center no-repeat; padding-right: 26px; transition: border-color 0.2s, background-color 0.2s; }
select.input:hover { border-color: var(--gold-pale); background-color: rgba(184, 150, 12, 0.03); }
select.input:focus { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8960c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
select.input option { font-family: 'Outfit', sans-serif; font-size: 14px; padding: 8px; color: var(--charcoal); background: var(--white); }
select.input option:checked { background: var(--gold-bg); color: var(--gold); font-weight: 500; }
.field-msg { font-size: 12px; margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.field-msg.success { color: var(--green); }
.field-msg.error { color: var(--red); }
.field-msg.warn { color: #b8860b; }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 300; }

/* Tiered-pricing hint list (services with tipo_precio = escalonado_personas) */
.tarifas-hint-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding: 8px 10px; background: var(--gold-bg); border-radius: 6px; border-left: 2px solid var(--gold-pale); }
.tarifas-hint-row  { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 11.5px; }
.tarifas-hint-rango  { color: var(--muted); font-weight: 300; }
.tarifas-hint-precio { color: var(--gold); font-weight: 500; letter-spacing: 0.2px; }

/* ========== TOGGLE SWITCHES ========== */
.service-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.service-row:last-child { border-bottom: none; }
.service-info { display: flex; align-items: center; gap: 14px; }
.service-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--gold-bg); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.service-name { font-size: 14px; font-weight: 500; color: var(--charcoal); }
.service-desc { font-size: 11px; color: var(--muted); font-weight: 300; margin-top: 1px; }

.toggle { position: relative; width: 44px; height: 24px; background: var(--border); border-radius: 12px; cursor: pointer; transition: background 0.25s; flex-shrink: 0; }
.toggle.on { background: var(--gold); }
.toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform 0.25s; box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.toggle.on::after { transform: translateX(20px); }

.extra-input { width: 64px; padding: 6px 0; text-align: center; font-family: 'Outfit', sans-serif; font-size: 14px; border: none; border-bottom: 1.5px solid var(--border); color: var(--charcoal); background: transparent; outline: none; }
.extra-input:focus { border-color: var(--gold); }

.terraza-sub { margin-top: 12px; padding-left: 50px; display: none; }
.terraza-sub.show { display: block; }

/* ========== PROPOSAL / QUOTE CARD ========== */
.proposal { position: sticky; top: 92px; }
.proposal-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 16px; overflow: hidden; }
.proposal-header { padding: 20px 24px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.proposal-title { font-family: 'Cormorant Garamond', serif; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.proposal-badge { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; background: var(--gold-bg); color: var(--gold); display: none; }
.proposal-body { padding: 24px; }

.proposal-empty { text-align: center; padding: 40px 20px; }
.proposal-empty-icon { font-size: 28px; opacity: 0.3; margin-bottom: 10px; }
.proposal-empty-text { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.6; }

.q-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.q-label { color: var(--muted); font-weight: 300; min-width: 65px; }
.q-value { color: var(--charcoal); font-weight: 500; }

.q-divider { height: 1px; background: var(--border-light); margin: 16px 0; }

.q-pkg-header { display: flex; justify-content: space-between; align-items: baseline; }
.q-pkg-name { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.q-pkg-price { font-size: 14px; font-weight: 600; color: var(--gold); }
.q-pkg-details { margin-top: 10px; }
.q-pkg-details p { font-size: 12px; color: var(--muted); font-weight: 300; margin-bottom: 3px; }

.q-addon { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }
.q-addon-name { color: var(--charcoal-light); font-weight: 300; }
.q-addon-price { font-weight: 500; }

.q-total { background: var(--charcoal); border-radius: 12px; padding: 16px 20px; margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.q-total-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.6); font-weight: 500; }
.q-total-value { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500; color: var(--gold-light); }
.q-total-sub { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 2px; }
