/* ═══════════════════════════════════════════════════════════
   Checkout Wizard — Premium UI
   Tuareg Tours 2026
   ═══════════════════════════════════════════════════════════ */

.cw-section { padding: 48px 0 80px; }

/* ── Progress Bar ── */
.cw-progress { display: flex; align-items: center; justify-content: center; gap: 0; margin-bottom: 40px; }
.cw-progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 1; }
.cw-progress-circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #e9ecef; color: #999; transition: all 0.4s ease; font-family: "Inter Tight", sans-serif; }
.cw-progress-step.active .cw-progress-circle { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(236,32,39,0.3); }
.cw-progress-step.completed .cw-progress-circle { background: #22c55e; color: #fff; }
.cw-progress-label { font-size: 12px; font-weight: 600; color: #999; text-transform: uppercase; letter-spacing: 0.05em; transition: color 0.3s; }
.cw-progress-step.active .cw-progress-label { color: #111; }
.cw-progress-step.completed .cw-progress-label { color: #22c55e; }
.cw-progress-line { flex: 1; max-width: 100px; height: 3px; background: #e9ecef; border-radius: 2px; position: relative; overflow: hidden; }
.cw-progress-line-fill { position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.cw-progress-line.filled .cw-progress-line-fill { transform: scaleX(1); }

/* ── Step Containers ── */
.cw-step { animation: cwFadeIn 0.4s ease; }
.cw-step-active { display: block; }
@keyframes cwFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ── Title ── */
.cw-title { font-size: 22px; font-weight: 700; color: #111; margin-bottom: 24px; font-family: "Inter Tight", sans-serif; letter-spacing: -0.02em; }

/* ── Pax Selector ── */
.cw-pax-selector { background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; padding: 4px 0; margin-bottom: 24px; }
.cw-pax-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.cw-pax-row + .cw-pax-row { border-top: 1px solid #f0f0f0; }
.cw-pax-type { font-size: 15px; font-weight: 600; color: #111; }
.cw-pax-desc { font-size: 12px; color: #999; margin-top: 2px; }
.cw-pax-counter { display: flex; align-items: center; gap: 16px; }
.cw-pax-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #dee2e6; background: #fff; font-size: 18px; font-weight: 500; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; user-select: none; }
.cw-pax-btn:hover { border-color: var(--primary); color: var(--primary); }
.cw-pax-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cw-pax-count { font-size: 18px; font-weight: 700; color: #111; min-width: 24px; text-align: center; font-family: "Inter Tight", sans-serif; }

/* ── Passenger Card ── */
.cw-passenger { background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; margin-bottom: 16px; overflow: hidden; transition: border-color 0.2s; }
.cw-passenger:hover { border-color: #ccc; }
.cw-passenger-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; cursor: pointer; user-select: none; background: #fafafa; transition: background 0.2s; }
.cw-passenger-header:hover { background: #f5f5f5; }
.cw-passenger-title { display: flex; align-items: center; gap: 12px; }
.cw-passenger-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.cw-passenger-name { font-size: 15px; font-weight: 600; color: #111; }
.cw-p-type-label { font-weight: 400; color: #999; font-size: 13px; }
.cw-passenger-actions { display: flex; align-items: center; gap: 8px; }
.cw-passenger-remove { width: 28px; height: 28px; border-radius: 50%; border: none; background: transparent; color: #999; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cw-passenger-remove:hover { background: #fee2e2; color: var(--primary); }
.cw-passenger-chevron { font-size: 12px; color: #999; transition: transform 0.3s; }
.cw-passenger-header[aria-expanded="false"] .cw-passenger-chevron,
.cw-passenger-header.collapsed .cw-passenger-chevron { transform: rotate(180deg); }
.cw-passenger-body { padding: 20px; }

/* ── Form Elements ── */
.cw-label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 6px; }
.cw-input { width: 100%; padding: 11px 14px; font-size: 14px; border: 1px solid #dee2e6; border-radius: 8px; background: #fff; color: #333; transition: border-color 0.2s, box-shadow 0.2s; font-family: "Inter Tight", sans-serif; box-sizing: border-box; }
.cw-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(236,32,39,0.08); }
.cw-input::placeholder { color: #adb5bd; }
.cw-input.is-invalid { border-color: #dc3545; }
textarea.cw-input { resize: vertical; min-height: 70px; }
select.cw-input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; cursor: pointer; }

/* ── Radio ── */
.cw-radio-group { display: flex; gap: 16px; padding-top: 6px; }
.cw-radio { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #333; cursor: pointer; }
.cw-radio input[type="radio"] { accent-color: var(--primary); }

/* ── Nationality Toggle ── */
.cw-nationality-toggle { display: flex; gap: 0; border: 1px solid #dee2e6; border-radius: 8px; overflow: hidden; }
.cw-nat-btn { flex: 1; padding: 10px 16px; font-size: 13px; font-weight: 600; border: none; background: #fff; color: #666; cursor: pointer; transition: all 0.2s; }
.cw-nat-btn.active { background: #111; color: #fff; }
.cw-nat-btn:not(.active):hover { background: #f5f5f5; }

/* ── Card ── */
.cw-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 14px; padding: 24px; }
.cw-card-title { font-size: 16px; font-weight: 600; color: #111; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.cw-card-title i { color: var(--primary); }

/* ── Terms ── */
.cw-terms { margin-top: 20px; }
.cw-checkbox-label { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: #555; cursor: pointer; line-height: 1.5; }
.cw-checkbox { accent-color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.cw-checkbox-label a { color: var(--primary); text-decoration: underline; }

/* ── Buttons ── */
.cw-btn-primary { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 24px; background: #111; color: #fff; border: none; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; margin-top: 24px; font-family: "Inter Tight", sans-serif; }
.cw-btn-primary:hover { background: var(--primary); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(236,32,39,0.2); }
.cw-btn-primary:active { transform: translateY(0); }
.cw-btn-primary:disabled { background: #ccc; cursor: not-allowed; transform: none; box-shadow: none; }
.cw-btn-back { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid #dee2e6; border-radius: 8px; padding: 12px 20px; font-size: 14px; font-weight: 500; color: #666; cursor: pointer; transition: all 0.2s; width: 100%; justify-content: center; }
.cw-btn-back:hover { border-color: #111; color: #111; }

/* ── Error ── */
.cw-error-msg { font-size: 12px; color: #dc3545; margin-top: 4px; min-height: 16px; }

/* ── Sidebar ── */
.cw-sidebar { background: #f8f9fa; border-radius: 14px; padding: 28px; position: sticky; top: 100px; }
.cw-sidebar-title { font-size: 18px; font-weight: 600; color: #111; margin-bottom: 20px; font-family: "Inter Tight", sans-serif; }
.cw-sidebar-tour { display: flex; gap: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #dee2e6; }
.cw-sidebar-thumb { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.cw-badge { display: inline-block; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.cw-sidebar-tour-name { font-size: 15px; font-weight: 600; color: #111; margin: 0 0 2px; }
.cw-sidebar-tour-route { font-size: 12px; color: #666; margin: 0 0 2px; }
.cw-sidebar-tour-date { font-size: 12px; color: #666; margin: 0; }
.cw-sidebar-tour-date i { font-size: 11px; margin-right: 4px; }
.cw-sidebar-lines { margin-bottom: 16px; }
.cw-sidebar-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14px; color: #555; }
.cw-sidebar-total { border-top: 2px solid #111; margin-top: 8px; padding-top: 14px; font-size: 18px; font-weight: 700; color: #111; }
.cw-sidebar-security { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 16px; border-top: 1px solid #dee2e6; }
.cw-sidebar-security img { height: 20px; opacity: 0.5; }
.cw-sidebar-note { text-align: center; font-size: 12px; color: #999; margin-top: 10px; margin-bottom: 0; }
.cw-sidebar-note i { color: #2e7d32; margin-right: 4px; }

/* ── Secure Badge ── */
.cw-secure-badge { display: flex; align-items: center; gap: 10px; background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: 10px; padding: 14px 18px; margin-bottom: 24px; font-size: 13px; color: #2e7d32; font-weight: 500; }
.cw-secure-badge i { font-size: 18px; }

/* ── Card Preview ── */
.cw-card-preview-wrapper { perspective: 1000px; margin-bottom: 28px; }
.cw-card-preview { position: relative; width: 100%; max-width: 400px; aspect-ratio: 1.586; margin: 0 auto; transition: transform 0.6s cubic-bezier(.4,.2,.2,1); transform-style: preserve-3d; }
.cw-card-preview.flipped { transform: rotateY(180deg); }
.cw-card-face { position: absolute; inset: 0; border-radius: 16px; backface-visibility: hidden; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; color: #fff; font-family: 'Inter Tight', 'Consolas', monospace; overflow: hidden; }
.cw-card-front { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05) inset; }
.cw-card-back { background: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%); transform: rotateY(180deg); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.cw-card-front::before { content: ''; position: absolute; top: -50%; right: -50%; width: 100%; height: 100%; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); pointer-events: none; }
.cw-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.cw-card-chip { width: 48px; height: 36px; background: linear-gradient(135deg, #d4a574 0%, #b8895e 100%); border-radius: 6px; position: relative; }
.cw-card-chip::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(0,0,0,0.15); border-radius: 3px; }
.cw-card-brand { height: 32px; opacity: 0.9; filter: brightness(0) invert(1); }
.cw-card-brand.troy-logo { filter: none; }
.cw-card-number { font-size: clamp(18px, 4vw, 24px); letter-spacing: 3px; font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,0.3); white-space: nowrap; overflow: hidden; }
.cw-card-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.cw-card-holder, .cw-card-expiry { display: flex; flex-direction: column; }
.cw-card-small-label { font-size: 9px; opacity: 0.6; letter-spacing: 0.5px; margin-bottom: 2px; }
.cw-card-holder span:last-child { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; opacity: 0.9; }
.cw-card-expiry span:last-child { font-size: 15px; letter-spacing: 2px; }
.cw-card-stripe { height: 48px; background: rgba(0,0,0,0.6); margin: 20px -28px 0; }
.cw-card-cvv-area { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: auto; }
.cw-card-cvv-box { background: #fff; color: #111; padding: 8px 20px; border-radius: 4px; font-size: 16px; letter-spacing: 4px; font-weight: 600; min-width: 70px; text-align: center; }
.cw-card-brand-back { position: absolute; bottom: 20px; right: 28px; height: 24px; opacity: 0.4; filter: brightness(0) invert(1); }

/* ── Card Form ── */
.cw-card-form { background: #fff; border: 1px solid #e9ecef; border-radius: 14px; padding: 28px; }

/* ── Legal Links ── */
.cw-legal-links { text-align: center; font-size: 12px; color: #999; margin-top: 16px; }
.cw-legal-links a { color: #666; text-decoration: underline; }

/* ── Toast ── */
.cw-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: #dc3545; color: #fff; padding: 14px 24px; border-radius: 10px; font-size: 14px; font-weight: 500; z-index: 9999; box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: transform 0.3s ease; max-width: 90%; text-align: center; }
.cw-toast.show { transform: translateX(-50%) translateY(0); }
.cw-toast.success { background: #22c55e; }

/* ═══ Responsive ═══ */
@media (max-width: 991px) {
    .cw-section { padding: 32px 0 60px; }
    .cw-sidebar { position: static; }
}

@media (max-width: 768px) {
    .cw-progress { gap: 0; }
    .cw-progress-line { max-width: 60px; }
    .cw-progress-circle { width: 34px; height: 34px; font-size: 13px; }
    .cw-progress-label { font-size: 10px; }
    .cw-title { font-size: 18px; margin-bottom: 16px; }
    .cw-pax-row { padding: 12px 16px; }
    .cw-passenger-header { padding: 12px 16px; }
    .cw-passenger-body { padding: 16px; }
    .cw-card { padding: 16px; }
    .cw-sidebar { padding: 20px; }
    .cw-btn-primary { padding: 14px 20px; font-size: 15px; }
    .cw-card-preview { max-width: 320px; }
    .cw-card-face { padding: 20px; }
    .cw-card-number { font-size: 18px; letter-spacing: 2px; }
    .cw-card-form { padding: 20px; }
    .cw-radio-group { flex-direction: column; gap: 8px; }
    .cw-nationality-toggle { flex-direction: column; }
    .cw-nat-btn { padding: 8px 12px; }
}

@media (max-width: 576px) {
    .cw-pax-selector { border-radius: 10px; }
    .cw-passenger { border-radius: 10px; }
    .cw-passenger-icon { width: 30px; height: 30px; font-size: 12px; }
    .cw-passenger-name { font-size: 14px; }
    .cw-sidebar-thumb { width: 56px; height: 56px; }
    .cw-sidebar-tour-name { font-size: 14px; }
}
