/* Public refund pages (resources/views/refunds/structure.blade.php and the pages that extend it) */

:root { --font-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; --brand: #365282; --brand-dark: #2B4168; }
* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, sans-serif; margin: 0; padding: 0; font-size: 16px; text-align: left !important; background: #f9f9f9; }

/* ── Header ── */
.nw-header { background-color: #fff !important; border-bottom: 1px solid #e5e7eb !important; font-size: 16px !important; font-weight: normal !important; }
.nw-header-content { max-width: 1200px !important; margin: 0 auto !important; padding: 0 40px !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
.nw-header-logo img { height: 60px !important; width: auto !important; }
.nw-main-nav { display: flex !important; align-items: center !important; gap: 2rem !important; }
.nw-nav-item { position: relative !important; display: flex !important; align-items: center !important; }
.nw-nav-link { color: #374151 !important; text-decoration: none !important; padding: 1rem 0 !important; display: flex !important; align-items: center !important; gap: 0.5rem !important; transition: color 0.2s !important; font-weight: 500 !important; }
.nw-nav-link:hover { color: #1E2E4A !important; }
.nw-dropdown { position: absolute !important; top: 100% !important; left: 0 !important; background: #fff !important; border: 1px solid #e5e7eb !important; border-radius: 4px !important; box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important; min-width: 200px !important; z-index: 1000 !important; display: none !important; }
.nw-nav-item:hover .nw-dropdown, .nw-nav-item:focus-within .nw-dropdown { display: block !important; }
.nw-dropdown a { display: block !important; padding: 12px 16px !important; color: #374151 !important; text-decoration: none !important; border-bottom: 1px solid #f3f4f6 !important; transition: background-color 0.2s !important; }
.nw-dropdown a:hover { background-color: #f9fafb !important; color: #1E2E4A !important; }
.nw-dropdown a:last-child { border-bottom: none !important; }
.nw-mobile-menu-toggle { display: none !important; flex-direction: column !important; gap: 3px !important; background: none !important; border: none !important; cursor: pointer !important; padding: 8px !important; }
.nw-mobile-menu-toggle span { width: 25px !important; height: 3px !important; background-color: #374151 !important; transition: all 0.3s !important; display: block; }

/* Mobile menu */
.nw-mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: #fff; box-shadow: -2px 0 10px rgba(0,0,0,0.1); transition: right 0.3s ease; z-index: 9999; overflow-y: auto; }
.nw-mobile-menu.active { right: 0; }
.nw-mobile-menu-header { padding: 20px; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; }
.nw-mobile-menu-header img { height: 40px; }
.nw-mobile-menu-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #374151; }
.nw-mobile-menu-content ul { list-style: none; margin: 0; padding: 0; }
.nw-mobile-menu-content li { border-bottom: 1px solid #f3f4f6; }
.nw-mobile-menu-content li > a { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; color: #374151; text-decoration: none; font-weight: 500; }
.nw-mobile-menu-content li > a:hover { background-color: #f9fafb; color: #2B4168; }
.nw-mobile-submenu { background: #f9fafb; display: none; border-top: 1px solid #e5e7eb; }
.nw-mobile-submenu a { padding: 12px 40px !important; font-size: 14px !important; font-weight: 400 !important; color: #6b7280 !important; border-bottom: 1px solid #f3f4f6 !important; display: block !important; text-decoration: none; }
.nw-mobile-submenu a:hover { background-color: #ffffff !important; color: #2B4168 !important; }
.nw-mobile-menu-content li.expanded .nw-mobile-submenu { display: block; }
.nw-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9998; }
.nw-overlay.active { display: block; }

/* ── Page Title ── */
/* Page title: Overland aircraft flying past in a blue sky (animated WebP converted from the supplied GIF, 2.4MB
   instead of 5.8MB). The still first frame sits underneath, so something shows at once while the animation loads,
   and it is all people who ask for reduced motion get. */
.nw-page-title { position: relative; background-color: #3b82c4; background-size: cover; background-position: center; padding: 60px 20px; text-align: center; color: #fff;
  background-image: url('../images/page-title-flyby.webp'), url('../images/page-title-flyby.jpg'); }
.nw-page-title-overlay { position: absolute; inset: 0; background: rgba(30, 46, 74, 0.38); }   /* brand navy tint: keeps the white title readable over the bright sky */
.nw-page-title h1, .nw-page-title p { text-shadow: 0 1px 3px rgba(10, 23, 48, .55), 0 0 18px rgba(10, 23, 48, .35); }
@media (prefers-reduced-motion: reduce) { .nw-page-title { background-image: url('../images/page-title-flyby.jpg'); } }
.nw-page-title-content { position: relative; z-index: 1; }
.nw-page-title h1 { font-size: 2.5rem; margin: 0; }
.nw-page-title p { font-size: 1.2rem; margin-top: 10px; }

/* ── Form type tabs ── */
.rf-tab-bar { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 0 40px; }
.rf-tab-bar-inner { max-width: 900px; margin: 0 auto; display: flex; gap: 0; }
.rf-tab { padding: 14px 22px; font-size: 14px; font-weight: 600; color: #6b7280; text-decoration: none; border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 7px; transition: all .15s; }
.rf-tab:hover { color: #2B4168; }
.rf-tab.active { color: #365282; border-bottom-color: #365282; }

/* ── Form section ── */
.nw-refund { padding: 50px 20px 70px; background: #f9f9f9; }
.nw-refund-container { max-width: 1000px; margin: 0 auto; }

/* ── Card ── */
.rf-card { background: #fff; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; margin-bottom: 24px; }
.rf-card-head { background:#365282; padding: 24px 32px; display: flex; align-items: center; gap: 14px; }
.rf-card-head-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rf-card-head-icon i { color: #fff; font-size: 35px; }
.rf-card-head h2 { color: #fff; font-size: 18px; font-weight: 700; margin: 0 0 3px; }
.rf-card-head p { color: rgba(255,255,255,0.95); font-size: 12.5px; margin: 0; }
.rf-card-body { padding: 32px; }

/* ── Notice ── */
.rf-notice { background: #E8F2F7; border-left: 4px solid #365282; border-radius: 0 6px 6px 0; padding: 13px 16px; margin-bottom: 26px; font-size: 13.5px; color: #2B4168; line-height: 1.55; }
.rf-notice i { margin-right: 6px; }
.rf-notice.warn { background: #fffbeb; border-color: #f59e0b; color: #92400e; }

/* ── Section title ── */
.rf-sec { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.9px; padding-bottom: 8px; border-bottom: 1px solid #e5e7eb; margin: 26px 0 16px; display: flex; align-items: center; gap: 7px; }
.rf-sec:first-child { margin-top: 0; }
.rf-sec i { color: #365282; font-size: 12px; }

/* ── Form grid ── */
.nw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.nw-form-row.single { grid-template-columns: 1fr; }
.nw-form-group { margin-bottom: 0; }
.rf-group-label { display: block; margin-bottom: 6px; font-weight: 600; color: #333; font-size: 13.5px; }
.rf-group-label .req { color: #dc2626; margin-left: 2px; }
.nw-form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #333; font-size: 13.5px; }
.nw-form-group label .req { color: #dc2626; margin-left: 2px; }
.nw-form-group input, .nw-form-group select, .nw-form-group textarea { width: 100%; padding: 10px 13px; border: 1px solid #d1d5db; border-radius: 6px; font-size: 14px; font-family: inherit; transition: border-color 0.2s; outline: none; background: #fff; color: #1f2937; }
.nw-form-group input:focus, .nw-form-group select:focus, .nw-form-group textarea:focus { border-color: #365282; box-shadow: 0 0 0 3px rgba(54, 82, 130,0.08); }
.nw-form-group input.err, .nw-form-group select.err, .nw-form-group textarea.err { border-color: #dc2626; }
.nw-form-group textarea { resize: vertical; min-height: 80px; }
.nw-form-group .hint { font-size: 12px; color: #6b7280; margin-top: 4px; }
.nw-form-group .errmsg { font-size: 12px; color: #dc2626; margin-top: 4px; display: none; }

/* ── Sub label ── */
.rf-sub { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.5px; margin: 10px 0 8px; }

/* ── Route pair ── */
.rf-route { display: flex; align-items: flex-end; gap: 8px; }
.rf-route .nw-form-group { flex: 1; margin-bottom: 0; }
.rf-route-arrow { color: #6b7280; font-size: 13px; padding-bottom: 11px; flex-shrink: 0; }

/* ── Checkbox group ── */
.rf-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.rf-check { display: flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid #e5e7eb; border-radius: 6px; cursor: pointer; font-size: 13.5px; font-weight: 500; transition: all .15s; user-select: none; background: #fff; }
.rf-check:hover { border-color: #365282; background: #E8F2F7; }
.rf-check input { width: 14px; height: 14px; accent-color: #365282; cursor: pointer; flex-shrink: 0; }
.rf-check.on { border-color: #365282; background: #E8F2F7; color: #2B4168; font-weight: 600; }

/* ── Payment tabs ── */
.rf-pay-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.rf-pay-tab { padding: 9px 20px; border: 1.5px solid #e5e7eb; border-radius: 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: #6b7280; background: #fff; transition: all .15s; display: flex; align-items: center; gap: 7px; font-family: inherit; }
.rf-pay-tab.on { border-color: #365282; background: #365282; color: #fff; }
.rf-pay-tab:not(.on):hover { border-color: #365282; color: #365282; }
.rf-pay-fields { display: none; }
.rf-pay-fields.show { display: block; }

/* ── Signature ── */
.rf-sig-wrap { border: 1.5px solid #d1d5db; border-radius: 6px; overflow: hidden; background: #fff; }
.rf-sig-wrap canvas { display: block; width: 100%; height: 140px; cursor: crosshair; touch-action: none; background: #fff; }
.rf-sig-bar { display: flex; align-items: center; padding: 8px 12px; border-top: 1px solid #f3f4f6; background: #f9fafb; gap: 8px; }
.rf-sig-hint { font-size: 12px; color: #6b7280; flex: 1; }
.rf-sig-clear { font-size: 12px; color: #6b7280; background: none; border: 1px solid #d1d5db; border-radius: 4px; padding: 4px 10px; cursor: pointer; font-family: inherit; transition: all .15s; }
.rf-sig-clear:hover { border-color: #dc2626; color: #dc2626; }
.rf-sig-wrap.err { border-color: #dc2626; }

/* ── Buttons ── */
.nw-btn { background-color: #365282; color: #fff; border: none; padding: 12px 24px; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.3s ease; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.nw-btn:hover { background-color: #2B4168; }
.nw-btn:disabled { background-color: #6b7280; cursor: not-allowed; }
.nw-btn-secondary { background: #f3f4f6; color: #374151; border: 1.5px solid #e5e7eb; }
.nw-btn-secondary:hover { background: #e5e7eb; }
.rf-btn-row { display: flex; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f3f4f6; }

/* ── Alert ── */
.rf-alert { padding: 12px 16px; border-radius: 6px; font-size: 13.5px; display: none; margin-top: 16px; line-height: 1.5; }
.rf-alert-error { background: #fef2f2; border-left: 4px solid #dc2626; color: #991b1b; }
.rf-alert i { margin-right: 6px; }

/* ── Success screen ── */
.rf-success { display: none; text-align: center; padding: 50px 28px; }
.rf-success-icon { width: 86px; height: 86px; background: linear-gradient(135deg, #22c55e, #16a34a); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 26px; box-shadow: 0 8px 24px rgba(22,163,74,0.22); }
.rf-success-icon i { color: #fff; font-size: 38px; }
.rf-success h2 { color: #2B4168; font-size: 24px; font-weight: 700; margin: 0 0 10px; }
.rf-success p { color: #6b7280; font-size: 14px; line-height: 1.65; margin: 0 0 8px; }
.rf-ref-box { display: inline-block; background: #E8F2F7; border: 1.5px solid #bfdbfe; border-radius: 8px; padding: 16px 32px; margin: 16px 0 24px; }
.rf-ref-box .rl { font-size: 12px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; margin-bottom: 4px; }
.rf-ref-box .rc { font-size: 22px; font-weight: 700; color: #2B4168; letter-spacing: 2px; font-family: var(--font-mono); }
.rf-copy-btn { font-size: 12px; color: #365282; background: none; border: none; cursor: pointer; margin-top: 6px; display: block; width: 100%; font-family: inherit; }
.rf-success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }

/* ── Footer ── */
.nw-footer { background-color: #1E2E4A !important; color: #fff !important; font-size: 16px !important; padding-top: 50px !important; }
.nw-footer-content { max-width: 1200px !important; margin: 0 auto !important; padding: 0 40px !important; }
.nw-footer-top { display: grid !important; grid-template-columns: 2fr 1fr 1fr 1fr !important; gap: 2rem !important; margin-bottom: 2rem !important; }
.nw-footer-logo { display: flex !important; align-items: center !important; gap: 0.5rem !important; margin-bottom: 1rem !important; }
.nw-footer-logo img { background-color: #fff !important; width: 120px !important; padding: 5px !important; }
.nw-footer-contact a { color: #fff !important; text-decoration: none !important; margin-bottom: 1rem !important; }
.nw-footer-section h3 { font-size: 1.2rem !important; margin-bottom: 1rem !important; }
.nw-footer-links { display: flex !important; flex-direction: column !important; gap: 0.75rem !important; }
.nw-footer-links a { color: #fff !important; text-decoration: none !important; transition: color 0.2s !important; }
.nw-payment-security { display: flex !important; justify-content: space-between !important; align-items: center !important; margin: 1.5rem 0 !important; }
.nw-payment-methods { display: flex !important; gap: 0.5rem !important; }
.nw-payment-methods img { width: 90px !important; border-radius: 3px !important; }
.nw-social-links { display: flex !important; gap: 1rem !important; }
.nw-social-links img { width: 30px !important; }
.nw-footer-bottom { display: flex !important; justify-content: space-between !important; padding-top: 1rem !important; padding-bottom: 1.5rem !important; border-top: 1px solid #374151 !important; color: #fff !important; font-size: 0.875rem !important; }
.nw-footer-bottom-links { display: flex !important; gap: 1rem !important; }
.nw-footer-bottom-links a { color: #fff !important; text-decoration: none !important; }

/* ── Responsive ── */
@media screen and (max-width: 768px) {
  .nw-main-nav { display: none !important; }
  .nw-mobile-menu-toggle { display: flex !important; }
  .nw-header-content { height: 64px; }
  .nw-form-row { grid-template-columns: 1fr; }
  .rf-card-body { padding: 20px 16px; }
  .rf-card-head { padding: 18px 20px; }
  .rf-tab-bar { padding: 0 16px; overflow-x: auto; }
  .nw-footer-top { grid-template-columns: 1fr !important; }
  .nw-footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .nw-footer-bottom-links { justify-content: center; }
  .nw-payment-security { flex-direction: column; gap: 1.5rem; text-align: center; }
  .nw-payment-methods { justify-content: center; }
  .nw-social-links { justify-content: center; }
  .nw-page-title h1 { font-size: 2rem; }
}

/* ── Accessibility ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid #365282; outline-offset: 2px;
}
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 10000; padding: 10px 16px; background: #365282; color: #fff; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ── Refund wizard ── */
[hidden] { display: none !important; }

/* ── Wizard ── */
.wz-steps { list-style: none; margin: 0; padding: 20px 32px; display: flex; gap: 0; border-bottom: 1px solid #eef0f3; background: #fafbfc; counter-reset: none; }
.wz-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; font-size: 12px; font-weight: 600; color: #6b7280; text-align: center; }
.wz-steps li::before { content: ''; position: absolute; top: 14px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 2px; background: #e5e7eb; }
.wz-steps li:first-child::before { display: none; }
.wz-steps li.done::before, .wz-steps li.active::before { background: #365282; }
.wz-dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #d1d5db; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #6b7280; position: relative; z-index: 1; transition: all .15s; }
.wz-steps li.active { color: #2B4168; }
.wz-steps li.active .wz-dot { border-color: #365282; background: #365282; color: #fff; box-shadow: 0 0 0 4px rgba(54, 82, 130,.12); }
.wz-steps li.done { color: #374151; cursor: pointer; }
.wz-steps li.done .wz-dot { border-color: #365282; color: #365282; }
.wz-steps li.done:hover .wz-dot { background: #E8F2F7; }
.wz-count { display: none; font-size: 12px; color: #6b7280; font-weight: 600; padding: 12px 16px 0; }

.wz-step { display: none; }
.wz-step.active { display: block; animation: wzIn .18s ease-out; }
@keyframes wzIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.wz-title { font-size: 19px; font-weight: 700; color: #2B4168; margin: 0 0 4px; outline: none; }
.wz-lead { font-size: 13.5px; color: #6b7280; margin: 0 0 22px; line-height: 1.55; }

.wz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #f3f4f6; }
.wz-nav .spacer { flex: 1; }

/* ── Policy ── */
.pol-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 14px; }   /* however many cards there are, they share the row */
.pol-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px 18px; background: #fff; display: flex; gap: 14px; }
.pol-item .pi { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: #E8F2F7; color: #365282; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.pol-item h3 { margin: 0 0 4px; font-size: 14px; color: #1f2937; }
.pol-item p { margin: 0; font-size: 13px; color: #4b5563; line-height: 1.55; }
.pol-key { border-color: #FF0000; background: #FFECEC; }
.pol-key .pi { background: #FFD9D9; color: #FF0000; }
.pol-key h3 { color: #D40000; font-size: 15px; margin-bottom: 8px; }
.pol-list { margin: 0 0 10px; padding-left: 20px; font-size: 13.5px; color: #A80000; line-height: 1.6; }
.pol-list li { margin-bottom: 6px; padding-left: 2px; }
.pol-key a { color: #D40000; font-weight: 700; }
.pol-confirm { margin: 0; font-size: 13px; color: #A80000; }
.pol-accept { margin: 14px 0 22px; padding: 14px 16px; border: 1.5px solid #e5e7eb; border-radius: 8px; background: #fff; }
.pol-accept:has(input:checked) { border-color: #365282; background: #E8F2F7; }

/* ── Fixed (single-choice) payment options ── */
.rf-fixed { display: inline-flex; align-items: center; gap: 9px; padding: 10px 16px; border: 1.5px solid #365282; border-radius: 6px; background: #E8F2F7; color: #2B4168; font-size: 13.5px; font-weight: 600; }
.rf-fixed i { color: #365282; }
#bankFields { margin-top: 16px; }   /* space between the Bank Transfer chip and the account fields */

/* ── E-ticket upload (fills the form) ── */
.tk-box { display: flex; align-items: flex-start; gap: 14px; margin: 18px 0 4px; padding: 16px 18px; border: 1.5px dashed #93c5fd; border-radius: 8px; background: #f8fbff; }
.tk-icon { width: 38px; height: 38px; flex-shrink: 0; border-radius: 8px; background: #dbeafe; color: #365282; display: flex; align-items: center; justify-content: center; font-size: 17px; }
.tk-text { flex: 1; min-width: 0; }
.tk-title { font-size: 14px; font-weight: 700; color: #2B4168; }
.tk-sub { font-size: 12.5px; color: #4b5563; line-height: 1.55; margin-top: 2px; }
.tk-status { font-size: 13px; margin-top: 8px; line-height: 1.5; }
.tk-status:empty { display: none; }
.tk-status.ok { color: #166534; }
.tk-status.bad { color: #b91c1c; }
.tk-action { flex-shrink: 0; position: relative; }
.tk-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tk-filled { background: #E8F2F7 !important; border-color: #93c5fd !important; }

/* ── Duplicate-request notice ── */
.dup-box { border-radius: 8px; padding: 14px 16px; margin: -4px 0 18px; font-size: 13px; line-height: 1.6; }
.dup-box.warn  { background: #fffbeb; border: 1px solid #fcd34d; color: #78350f; }
.dup-box.block { background: #fef2f2; border: 1.5px solid #fca5a5; color: #7f1d1d; }
.dup-box .dup-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.dup-box p { margin: 0; }
.dup-box dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 10px 0 0; }
.dup-box dt { font-weight: 600; }
.dup-box dd { margin: 0; }
.dup-box .dup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dup-box .dup-actions a { font-size: 13px; padding: 8px 14px; }

/* ── Fields ── */
.rf-leg { background: #f9fafb; border: 1px solid #eef0f3; border-radius: 8px; padding: 14px 16px 2px; margin-bottom: 14px; }
.rf-leg .rf-sub { margin-top: 0; }
.rf-leg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.rf-pax-row { display: flex; gap: 8px; margin-bottom: 8px; }
.rf-pax-row input { flex: 1; }
.rf-pax-del { flex-shrink: 0; width: 40px; border: 1px solid #d1d5db; border-radius: 6px; background: #fff; color: #6b7280; cursor: pointer; }
.rf-pax-del:hover { border-color: #dc2626; color: #dc2626; }
.rf-link-btn { background: none; border: 1px dashed #365282; color: #365282; border-radius: 6px; padding: 7px 14px; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rf-link-btn:disabled { opacity: .5; cursor: not-allowed; }
.nw-form-group label.rf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; color: #374151; font-weight: 500; cursor: pointer; margin: 0; }
.nw-form-group .rf-consent input { width: 16px; height: 16px; padding: 0; margin-top: 2px; flex-shrink: 0; accent-color: #365282; }
.nw-form-group .rf-check input { width: 14px; height: 14px; padding: 0; }
.nw-form-group input[type=file] { padding: 8px; background: #f9fafb; }
.rf-opt { color: #6b7280; font-weight: 400; }

/* ── Review ── */
.rv-sec { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 14px; overflow: hidden; }
.rv-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #f9fafb; border-bottom: 1px solid #eef0f3; font-size: 12px; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: .6px; }
.rv-edit { background: none; border: none; color: #365282; font-family: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; }
.rv-edit:hover { text-decoration: underline; }
.rv-body { display: grid; grid-template-columns: 180px 1fr; gap: 8px 16px; padding: 14px 16px; font-size: 13.5px; }
.rv-body dt { color: #6b7280; }
.rv-body dd { margin: 0; color: #111827; font-weight: 500; word-break: break-word; white-space: pre-line; }

@media (max-width: 768px) {
  .tk-box { flex-wrap: wrap; }
  .tk-action { width: 100%; }
  .tk-action .nw-btn { width: 100%; justify-content: center; }
  .wz-steps { padding: 14px 10px; }
  .wz-steps .wz-lbl { display: none; }
  .wz-count { display: block; }
  .pol-grid { grid-auto-flow: row; grid-template-columns: 1fr; }
  .pol-key { flex-direction: column; gap: 10px; }
  .rf-leg-grid { grid-template-columns: 1fr 1fr; }
  .rf-leg-grid > :last-child { grid-column: 1 / -1; }
  .rv-body { grid-template-columns: 1fr; gap: 2px; }
  .rv-body dd { margin-bottom: 8px; }
  .wz-nav .nw-btn { padding: 12px 16px; }
}

/* ── Tracking page ── */
.rf-result-summary { background: #f8faff; border: 1.5px solid #e0e7ff; border-radius: 8px; padding: 20px; margin-bottom: 24px; }
.rf-result-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rf-result-ref { font-size: 18px; font-weight: 700; color: #2B4168; font-family: var(--font-mono); letter-spacing: 1px; }
.rf-result-ref-lbl { font-size: 12px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 3px; }
.rf-status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.rf-result-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid #e5e7eb; }
.rf-meta-lbl { font-size: 12px; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.rf-meta-val { font-size: 13.5px; font-weight: 600; color: #1f2937; }
.rf-tl { position: relative; margin-top: 8px; }
.rf-tl-title { font-size: 12px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 16px; }
.rf-tl-item { display: flex; gap: 14px; padding-bottom: 20px; position: relative; }
.rf-tl-item:last-child { padding-bottom: 0; }
.rf-tl-item:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: #e5e7eb; }
.rf-tl-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 12px; }
.rf-tl-dot.done { background: #dcfce7; color: #16a34a; }
.rf-tl-dot.current { background: #dbeafe; color: #365282; }
.rf-tl-dot.pending { background: #f3f4f6; color: #d1d5db; }
.rf-tl-body { padding-top: 2px; }
.rf-tl-body strong { font-size: 13.5px; color: #1f2937; display: block; margin-bottom: 1px; }
.rf-tl-body .rf-tl-meta { font-size: 12px; color: #6b7280; }
.rf-tl-body .rf-tl-note { font-size: 12px; color: #475569; margin-top: 3px; font-style: italic; }
.rf-new-links { margin-top: 28px; padding-top: 22px; border-top: 1px solid #f3f4f6; text-align: center; }
.rf-new-links p { color: #6b7280; font-size: 13.5px; margin-bottom: 12px; }
.rf-new-links-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rf-new-link { padding: 9px 18px; background: #fff; color: #374151; border: 1.5px solid #e5e7eb; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.rf-new-link:hover { background: #E8F2F7; border-color: #bfdbfe; color: #365282; }

/* ── Miscellaneous refund form; the notice and banner are on both refund forms ── */
.rf-leg { background: #f9fafb; border: 1px solid #eef0f3; border-radius: 8px; padding: 14px 16px 2px; margin-bottom: 14px; }
.rf-leg .rf-sub { margin-top: 0; }
.rf-leg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 12px; }
.rf-leg[hidden] { display: none; }
.rf-amount { position: relative; }
.rf-amount span { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #6b7280; font-weight: 600; pointer-events: none; }
.rf-amount input { padding-left: 30px !important; }
.rf-declare { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 8px; background: #f9fafb; font-size: 13.5px; color: #374151; line-height: 1.55; cursor: pointer; }
.rf-declare input { width: 18px; height: 18px; margin-top: 2px; accent-color: #365282; flex-shrink: 0; }
.rf-declare.err { border-color: #dc2626; }
.rf-important { margin-top: 28px; padding: 16px 18px; border-left: 4px solid #365282; background: #E8F2F7; border-radius: 6px; font-size: 13.5px; color: #2B4168; line-height: 1.6; }
.rf-important strong { display: block; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 4px; }
.rf-banner { display: block; width: 100%; height: auto; margin-top: 20px; border-radius: 8px; }
@media screen and (max-width: 768px) {
  .rf-leg-grid { grid-template-columns: 1fr 1fr; }
  .rf-leg-grid > :last-child { grid-column: 1 / -1; }
}

/* ── Touch and small screens ── */
.nw-form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.nw-form-group select { min-height: 44px; }
.rf-check { min-height: 40px; }
.nw-btn { min-height: 44px; }
.nw-form-group .errmsg::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 5px; }   /* not colour alone */

@media (max-width: 768px) {
  /* 16px stops iOS zooming into a field when it is tapped */
  .nw-form-group input, .nw-form-group select, .nw-form-group textarea { font-size: 16px; }
  .nw-page-title { padding: 28px 16px; }
  .nw-page-title h1 { font-size: 1.6rem; }
  .nw-page-title p { font-size: 1rem; }
  .nw-refund { padding: 20px 12px 48px; }
  .rf-btn-row { flex-wrap: wrap; }
  .rf-btn-row .nw-btn { flex: 1 1 auto; justify-content: center; }
}

/* Fields typed in capitals (PNR) keep a normal-case example */
input[style*="uppercase"]::placeholder { text-transform: none; }

/* ── Signature pad: upload a photo instead of drawing ── */
.rf-sig-bar { flex-wrap: wrap; }
.rf-sig-upload { color: #365282; border-color: #c7d4f0; }
.rf-sig-upload:hover { border-color: #365282; color: #2B4168; background: #E8F2F7; }
.rf-sig-bar .rf-sig-clear { min-height: 32px; }
.rf-sig-status { margin-top: 6px; font-size: 12.5px; color: #166534; }
.rf-sig-status.is-error { color: #b91c1c; }
.rf-sig-status.is-error::before { content: "\f06a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 5px; }

/* Short pages: the footer sits at the bottom of the window, not halfway up */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* Step titles receive focus so screen readers announce the new step; they are not controls, so no outline */
.wz-title:focus, .wz-title:focus-visible { outline: none; }
