/* Quote Form Wizard */
.qf-section { padding-top: 0; }
.qf-container { max-width: 1100px; }
.qf-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: start; }
.qf-sidebar-box { background: #fff; border: 1px solid var(--border, #e5e7eb); border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.06)); }
.qf-sidebar-box h3 { font-size: 1rem; margin: 0 0 12px; color: var(--primary, #1a365d); display: flex; align-items: center; gap: 8px; }
.qf-sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.qf-sidebar-box li { padding: 6px 0; font-size: .9rem; color: var(--text-muted, #64748b); }
.qf-sidebar-box li i { color: var(--accent, #c9922a); margin-right: 6px; }
.qf-form-links { list-style: none; padding: 0; margin: 0; }
.qf-form-links a { display: block; padding: 8px 0; font-size: .875rem; color: var(--primary); border-bottom: 1px solid #f1f5f9; }
.qf-form-links a:hover { color: var(--accent); }
.qf-form-links i { margin-right: 4px; color: var(--accent); }

.qf-student-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    margin-bottom: 24px; padding: 16px 20px;
    background: linear-gradient(135deg, rgba(26,54,93,.06), rgba(201,146,42,.12));
    border: 1px solid rgba(201,146,42,.35); border-radius: 12px;
}
.qf-student-banner-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.qf-student-banner-text strong { color: var(--primary, #1a365d); font-size: 1rem; display: inline-flex; align-items: center; gap: 8px; }
.qf-student-banner-text span { color: var(--text-muted, #64748b); font-size: .9rem; line-height: 1.45; }
.qf-student-banner-btn { white-space: nowrap; flex-shrink: 0; }

.qf-sidebar-student {
    background: linear-gradient(160deg, #1a365d 0%, #243b63 100%);
    border-color: transparent; color: #fff;
}
.qf-sidebar-student h3 { color: #fff !important; }
.qf-sidebar-student li { color: rgba(255,255,255,.9) !important; }
.qf-sidebar-student li i { color: #e5b84d !important; }
.qf-sidebar-link { display: inline-block; margin-top: 12px; color: #e5b84d; font-weight: 600; font-size: .875rem; text-decoration: none; }
.qf-sidebar-link:hover { color: #fff; }

.qf-hero-student { background: linear-gradient(135deg, #1a365d 0%, #2c5282 100%); }

.qf-wrap { background: #f8fafc; border-radius: 16px; padding: 32px; box-shadow: 0 4px 24px rgba(26,54,93,.08); border: 1px solid #e2e8f0; }
.qf-header { text-align: center; margin-bottom: 28px; }
.qf-title { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--primary, #1a365d); margin: 0 0 10px; line-height: 1.3; }
.qf-title .accent { color: var(--accent, #c9922a); }
.qf-subtitle { color: var(--text-muted, #64748b); max-width: 640px; margin: 0 auto; font-size: .95rem; line-height: 1.6; }

.qf-progress { height: 4px; background: #e2e8f0; border-radius: 4px; margin-bottom: 16px; overflow: hidden; }
.qf-progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent, #c9922a), var(--accent-light, #e5b84d)); width: 0; transition: width .35s ease; border-radius: 4px; }

.qf-steps-nav { display: flex; justify-content: center; gap: 10px; list-style: none; padding: 0; margin: 0 0 24px; }
.qf-step-dot { width: 32px; height: 32px; border-radius: 50%; background: #e2e8f0; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; color: #94a3b8; transition: all .3s; }
.qf-step-dot.active { background: var(--accent, #c9922a); color: #fff; box-shadow: 0 0 0 4px rgba(201,146,42,.25); }
.qf-step-dot.done { background: var(--primary, #1a365d); color: #fff; }

.qf-form { position: relative; }
.qf-step { display: none; animation: qfFadeIn .35s ease; }
.qf-step.active { display: block; }
@keyframes qfFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.qf-step-head { margin-bottom: 20px; }
.qf-step-badge { display: inline-block; background: var(--accent, #c9922a); color: #fff; font-weight: 700; font-size: .95rem; padding: 10px 18px; border-radius: 8px 8px 8px 0; box-shadow: 0 2px 8px rgba(201,146,42,.3); }
.qf-step-desc { margin: 10px 0 0; color: var(--text-muted); font-size: .9rem; }

.qf-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; background: #fff; border-radius: 12px; padding: 24px; border: 1px solid #e2e8f0; }
.qf-field-wide, .qf-field-radio, .qf-field-check { grid-column: 1 / -1; }
.qf-field label { display: block; font-weight: 600; font-size: .85rem; color: var(--primary); margin-bottom: 6px; }
.qf-field input[type="text"], .qf-field input[type="tel"], .qf-field input[type="email"], .qf-field input[type="date"], .qf-field input[type="number"], .qf-field select, .qf-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: .95rem; font-family: inherit; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,146,42,.15); }
.qf-field input.qf-invalid, .qf-field select.qf-invalid, .qf-field textarea.qf-invalid, .qf-invalid fieldset { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }

.qf-address-wrap { position: relative; }
.qf-address-wrap textarea { padding-right: 48px; resize: vertical; min-height: 80px; }
.qf-map-trigger { position: absolute; right: 8px; top: 8px; width: 36px; height: 36px; border: none; background: var(--accent); color: #fff; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.qf-map-trigger:hover { background: var(--accent-dark, #a6711f); }

.qf-field-radio legend { font-weight: 700; font-size: .9rem; color: var(--primary); margin-bottom: 10px; padding: 0; }
.qf-radio-group { display: flex; flex-direction: column; gap: 10px; }
.qf-radio, .qf-checkbox { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .9rem; color: #334155; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 8px; transition: border-color .2s, background .2s; }
.qf-radio:hover, .qf-checkbox:hover { border-color: var(--accent); background: rgba(201,146,42,.04); }
.qf-radio input, .qf-checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.qf-radio-mark, .qf-check-mark { width: 20px; height: 20px; border: 2px solid #cbd5e1; border-radius: 50%; flex-shrink: 0; margin-top: 1px; position: relative; }
.qf-check-mark { border-radius: 4px; }
.qf-radio input:checked + .qf-radio-mark { border-color: var(--accent); background: var(--accent); }
.qf-radio input:checked + .qf-radio-mark::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 8px; height: 8px; background: #fff; border-radius: 50%; }
.qf-checkbox input:checked + .qf-check-mark { border-color: var(--accent); background: var(--accent); }
.qf-checkbox input:checked + .qf-check-mark::after { content: '\2713'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; }

.qf-channel { margin: 20px 0 0; padding: 20px; background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; }
.qf-channel-label { font-weight: 600; margin: 0 0 12px; color: var(--primary); }
.qf-channel-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qf-channel-opt { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px; border: 2px solid #e2e8f0; border-radius: 12px; cursor: pointer; transition: all .2s; }
.qf-channel-opt.selected, .qf-channel-opt:has(input:checked) { border-color: var(--accent); background: rgba(201,146,42,.06); }
.qf-channel-opt i { font-size: 1.75rem; margin-bottom: 8px; }
.qf-channel-opt .fa-whatsapp { color: #25d366; }
.qf-channel-opt span { font-weight: 700; font-size: .9rem; }
.qf-channel-opt small { color: var(--text-muted); font-size: .75rem; margin-top: 4px; }
.qf-channel-opt input { position: absolute; opacity: 0; }

.qf-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; gap: 12px; }
.qf-btn-prev, .qf-btn-next, .qf-btn-submit { min-width: 140px; padding: 14px 24px; font-weight: 700; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.qf-btn-prev { background: #fff; border: 2px solid var(--accent); color: var(--accent); }
.qf-btn-prev:hover:not(:disabled) { background: rgba(201,146,42,.08); }
.qf-btn-prev:disabled { opacity: .4; cursor: not-allowed; }
.qf-btn-next, .qf-btn-submit { margin-left: auto; }
.qf-btn-wa { background: #25d366 !important; border-color: #25d366 !important; }
.qf-btn-wa:hover { background: #1da851 !important; border-color: #1da851 !important; }
.qf-btn-submit.loading { opacity: .7; pointer-events: none; }

.qf-success { text-align: center; padding: 40px 20px; }
.qf-success-icon { font-size: 4rem; color: #22c55e; margin-bottom: 16px; }
.qf-success h2 { color: var(--primary); margin-bottom: 8px; }

.qf-map-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.qf-map-modal.hidden { display: none; }
.qf-map-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); }
.qf-map-dialog { position: relative; background: #fff; border-radius: 16px; width: min(640px, 100%); max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.qf-map-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid #e2e8f0; }
.qf-map-header h3 { margin: 0; font-size: 1.1rem; color: var(--primary); }
.qf-map-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: #64748b; padding: 4px 8px; }
.qf-map-hint { padding: 0 20px; margin: 10px 0; font-size: .85rem; color: var(--text-muted); }
.qf-map-canvas { height: 320px; margin: 0 20px; border-radius: 8px; border: 1px solid #e2e8f0; }
.qf-map-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 20px; }
body.qf-map-open { overflow: hidden; }

.hidden { display: none !important; }

@media (max-width: 900px) {
    .qf-layout { grid-template-columns: 1fr; }
    .qf-sidebar { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .qf-sidebar-box { margin-bottom: 0; }
    .qf-student-banner { margin-bottom: 16px; }
}
@media (max-width: 640px) {
    .qf-wrap { padding: 20px 16px; border-radius: 12px; }
    .qf-fields { grid-template-columns: 1fr; padding: 16px; }
    .qf-channel-options { grid-template-columns: 1fr; }
    .qf-nav { flex-wrap: wrap; }
    .qf-btn-prev, .qf-btn-next, .qf-btn-submit { flex: 1; min-width: 0; }
    .qf-sidebar { grid-template-columns: 1fr; }
    .qf-steps-nav { gap: 6px; }
    .qf-step-dot { width: 28px; height: 28px; font-size: .7rem; }
    .qf-student-banner { flex-direction: column; align-items: stretch; text-align: left; }
    .qf-student-banner-btn { width: 100%; text-align: center; }
}
