:root {
    --brand: #4f46e5;
    --brand-dark: #3730a3;
    --ink: #1f2937;
    --surface: #f4f6fb;
}

body { background: var(--surface); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); }
.text-primary { color: var(--brand) !important; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }

/* Header */
.site-header { background: #111827; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); z-index: 1030; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; font-size: 1.1rem; }
.site-header .nav-link { color: rgba(255, 255, 255, .75); }
.site-header .nav-link:hover { color: #fff; }
.secure-pill { font-size: .8rem; color: #a7f3d0; background: rgba(16, 185, 129, .15); padding: .35rem .75rem; border-radius: 999px; }

/* Hero */
.hero { background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%); padding: 3.5rem 0 6.5rem; }
.hero-sm { padding: 2.5rem 0 5.5rem; }
.booking-wrap { margin-top: -4rem; position: relative; }

/* Form */
.form-card { border-radius: 16px; }
.section-title { display: flex; align-items: center; gap: .65rem; font-weight: 600; font-size: 1.05rem; margin-bottom: 1rem; }
.section-title .step { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; display: inline-flex; align-items: center; justify-content: center; }
.form-label { font-weight: 500; font-size: .9rem; }
.form-control, .form-select { padding: .65rem .85rem; border-radius: 10px; }

/* Summary */
.summary-sticky { position: sticky; top: 90px; }
.summary-card, .details-card, .status-card { border-radius: 16px; }
.summary-list > div, .detail-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px dashed #e5e7eb; }
.summary-list dt, .detail-list dt { font-weight: 500; color: #6b7280; margin: 0; }
.summary-list dd, .detail-list dd { margin: 0; text-align: right; font-weight: 500; }
.summary-total { border-top: 2px solid #e5e7eb; }
.how-list { padding-left: 1.1rem; color: #4b5563; font-size: .92rem; }
.how-list li { margin-bottom: .5rem; }

/* Result page */
.status-icon { font-size: 4rem; line-height: 1; }
.status-paid { border-top: 5px solid #10b981; }
.status-waiting { border-top: 5px solid var(--brand); }
.status-failed { border-top: 5px solid #ef4444; }
.status-pending, .status-cancelled { border-top: 5px solid #f59e0b; }
.status-refunded { border-top: 5px solid #0ea5e9; }
.detail-heading { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; color: var(--brand); font-weight: 700; margin-bottom: .25rem; }

/* Footer */
.site-footer { background: #111827; color: #9ca3af; }
.site-footer a { color: #9ca3af; text-decoration: none; }
.site-footer a:hover { color: #fff; }

@media print {
    .site-header, .site-footer, .hero, .no-print, #statusCard .btn { display: none !important; }
    .booking-wrap { margin-top: 0; }
    body { background: #fff; }
    .card { box-shadow: none !important; border: 1px solid #e5e7eb !important; }
}

/* Select2 (searchable dropdowns) aligned with the form controls */
.form-card .select2-container--bootstrap-5 .select2-selection { min-height: calc(1.5em + 1.3rem + 2px); padding: .65rem .85rem; border-radius: 10px; }
.form-card .select2-container--bootstrap-5.select2-container--focus .select2-selection,
.form-card .select2-container--bootstrap-5.select2-container--open .select2-selection { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }
.form-card select.is-invalid + .select2-container--bootstrap-5 .select2-selection { border-color: #dc3545; }
.form-card .select2-container--bootstrap-5.select2-container--disabled .select2-selection { background-color: var(--bs-secondary-bg); }
.select2-container--bootstrap-5 .select2-dropdown { border-radius: 10px; overflow: hidden; z-index: 1056; }
.select2-container--bootstrap-5 .select2-results__option--highlighted { background-color: var(--brand) !important; color: #fff !important; }
.select2-container--bootstrap-5 .select2-search--dropdown .select2-search__field:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(79, 70, 229, .15); }

/* Busy / unavailable time slots in the Time dropdown */
.select2-container--bootstrap-5 .select2-results__option[aria-disabled="true"] { color: #9ca3af; }
del.slot-busy { text-decoration: line-through; color: #9ca3af; }
#country_name { background-color: #f3f4f6; cursor: default; }

/* Busy-slot manager */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; }
.slot-grid .btn { width: 100%; font-size: .9rem; }
.slot-grid .btn-check:checked + .btn-outline-danger { text-decoration: line-through; }
