:root {
  color-scheme: light;
  --paper: #fff;
  --desk: #f6f3f2;
  --ink: #262125;
  --secondary-ink: #4e4851;
  --wine: #82152e;
  --border: #d7ced1;
  --input: #93878c;
  --selected: #f7eaee;
  --fill: #f4f1f2;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--desk);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: clamp(1rem, 1.4vw, 1.15rem); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--wine); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.video-intro, .booking, .demo-footer { width: min(1320px, calc(100% - 36px)); margin-inline: auto; }
.video-intro, .booking { margin-top: 14px; padding-inline: clamp(18px, 2.65vw, 36px); background: var(--paper); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 5px 22px #4126310d; }
.video-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, 450px); align-items: center; gap: clamp(20px, 4.6vw, 64px); padding-block: clamp(16px, 2.4vw, 29px); border-top: 4px solid var(--wine); }
.video-copy h1 { max-width: 20ch; font-size: clamp(1.58rem, 3.7vw, 3rem); font-weight: 650; line-height: 1.08; letter-spacing: -.035em; }
.video-copy p { margin: 12px 0 16px; color: var(--secondary-ink); line-height: 1.48; }
.try-book { display: inline-block; font-weight: 650; }
.video-player { position: relative; min-width: 0; }
.video-player video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 5px; background: #24151b; }
.play-video { display: flex; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); align-items: center; gap: 9px; padding: 9px 12px; border: 0; border-radius: 4px; background: white; color: var(--wine); box-shadow: 0 3px 10px #0005; font-weight: 700; white-space: nowrap; }
.play-video::before { content: ''; border-block: 5px solid transparent; border-left: 8px solid currentColor; }
.play-video span { color: var(--secondary-ink); font-size: .85rem; font-weight: 500; }
.play-video:hover { background: var(--selected); }
.play-video:focus-visible { outline-color: white; }
.booking { scroll-margin-top: 12px; }
.booking-title { padding: clamp(17px, 2.35vw, 33px) 0; }
.booking-title h2 { font-size: clamp(1.42rem, 2.22vw, 1.82rem); font-weight: 650; line-height: 1.18; }

.brand { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; min-height: clamp(95px, 10vw, 135px); padding: 14px clamp(12px, 1.4vw, 19px); background: #faf8f8; border: 1px solid #e4dcde; border-top: 4px solid var(--wine); border-bottom: 2px solid #292429; border-radius: 5px; }
.identity, .carriers { display: flex; align-items: center; gap: 10px; }
.identity img { width: clamp(102px, 12.6vw, 166px); height: auto; }
.identity span { padding: 4px 8px; border: 1px solid var(--wine); border-radius: 4px; color: var(--wine); font-size: .83rem; font-weight: 750; letter-spacing: .065em; }
.carriers { gap: 8px; }
.carriers button { display: grid; place-items: center; width: clamp(60px, 7.2vw, 98px); height: clamp(40px, 4.05vw, 54px); padding: 6px 10px; background: white; border: 1px solid #d8d1d3; border-radius: 7px; }
.carriers button:hover, .carriers button[aria-pressed="true"] { border-color: var(--wine); }
.carriers button[aria-pressed="true"] { box-shadow: inset 0 -3px var(--wine); }
.carriers button img { width: 100%; height: clamp(16px, 2.25vw, 28px); object-fit: contain; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(26px, 4.55vw, 60px); }
.field { display: grid; grid-template-columns: 45fr 50fr; gap: 12px; align-items: center; min-width: 0; }
.field + .field { margin-top: 11px; }
.field > span { display: flex; min-width: 0; align-items: center; gap: 9px; color: var(--secondary-ink); line-height: 1.22; }
.field > span::after { content: ''; flex: 1; min-width: 0; height: 2px; background: radial-gradient(circle, #c3b7bd 1px, transparent 1.4px) 1px center / 8px 3px repeat-x; }
.field input, .field select { width: 100%; height: clamp(34px, 3vw, 42px); padding: 5px 7px; min-width: 0; border: 1px solid var(--input); border-radius: 2px; background: #fff; color: var(--ink); }
.field input[readonly] { background: #ede9eb; border-color: #ede9eb; }
.field select { padding-right: 23px; }
.numeric { text-align: right; appearance: textfield; }
.numeric::-webkit-inner-spin-button, .numeric::-webkit-outer-spin-button { appearance: none; margin: 0; }
.order { padding-top: clamp(19px, 2.5vw, 32px); }
.fields > h3 { font-size: clamp(1.12rem, 1.98vw, 1.56rem); font-weight: 650; border-bottom: 1px solid #867781; padding-bottom: 7px; margin-bottom: clamp(15px, 1.9vw, 26px); }
.fields { margin-top: clamp(30px, 5.4vw, 70px); }
.recipient { margin-top: 0; }

.line-section { margin-top: clamp(29px, 4.4vw, 58px); }
.line-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 9px 0; border-block: 1px solid var(--border); min-height: clamp(45px, 4.1vw, 56px); }
.line-toolbar h3 { font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 650; color: var(--secondary-ink); padding-right: 20px; border-right: 1px solid var(--border); }
.line-toolbar button { border: 0; border-radius: 3px; padding: 4px 5px; color: var(--ink); background: transparent; }
.line-toolbar button:hover:not(:disabled) { background: var(--selected); }
.line-toolbar button:disabled { color: #76686e; cursor: default; }
.line-toolbar button span { color: var(--wine); font-weight: 650; font-size: 1.16rem; }
.line-grid { min-height: clamp(170px, 28vw, 355px); background: var(--fill); }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.selection-col { width: clamp(31px, 5.4vw, 65px); }
.type-col { width: 29%; }
.quantity-col { width: 20%; }
thead { background: white; text-align: left; }
th { padding: clamp(15px, 3.25vw, 42px) 9px 8px; color: var(--secondary-ink); font-size: clamp(.92rem, 1.25vw, 1.04rem); font-weight: 500; }
th:last-child { text-align: right; padding-right: 16px; }
td { height: clamp(34px, 3.1vw, 42px); padding: 0; border: 1px solid var(--border); background: white; }
td select, td input, td button { display: block; width: 100%; height: 100%; border: 0; background-color: transparent; color: var(--ink); }
td select, td input { min-height: 32px; padding: 3px 9px; }
td input.numeric { padding-right: 16px; }
td :focus-visible { outline-offset: -2px; }
.selection button { min-height: 32px; color: var(--wine); }
.selection button::before { content: ''; display: inline-block; width: 8px; height: 8px; border: 1px solid #94808a; border-radius: 50%; }
.selected .selection, .selected td:nth-child(2) { background: var(--selected); }
.selected .selection button::before { background: var(--wine); border-color: var(--wine); }
.empty-line td { background: #fffdfd; }
.booking-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: clamp(14px, 2.15vw, 28px) 0; margin-top: clamp(18px, 2.1vw, 28px); border-top: 1px solid var(--border); }
.booking-actions p { margin-right: auto; font-weight: 600; color: var(--wine); }
.buttons { display: flex; gap: 10px; margin-left: auto; }
.button { min-width: 110px; padding: 8px 16px; line-height: 1.45; border: 1px solid var(--input); border-radius: 4px; font-weight: 650; }
.button.primary { background: var(--wine); border-color: var(--wine); color: white; }
.button.primary:hover { background: #681024; }
.button.secondary { background: white; color: var(--ink); }
.button.secondary:hover { background: var(--selected); }
.demo-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 7px 18px; padding: 13px 2px 24px; color: var(--secondary-ink); font-size: .88rem; }
[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--wine); }
dialog { width: min(545px, calc(100% - 28px)); padding: 0; border: 1px solid var(--border); border-top: 4px solid var(--wine); border-radius: 6px; max-height: 95dvh; color: var(--ink); }
dialog::backdrop { background: #2d1924a3; }
.dialog-header, .dialog-content, .dialog-actions { padding: 17px 21px; }
.dialog-header { border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.dialog-header h2 { font-size: clamp(1.14rem, 2.1vw, 1.42rem); font-weight: 650; }
.dialog-content p { line-height: 1.45; }
.dialog-content dl { margin: 18px 0 0; display: grid; gap: 9px; }
.dialog-content dt { font-size: .875rem; color: var(--secondary-ink); }
.dialog-content dd { margin: 1px 0 0; font-family: Consolas, monospace; }
.dialog-actions { text-align: right; border-top: 1px solid var(--border); }
@media (max-width: 760px) {
  .video-intro, .booking, .demo-footer { width: calc(100% - 20px); }
  .video-intro, .booking { padding-inline: clamp(12px, 3vw, 22px); }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .line-grid { min-height: 145px; }
  .field > span::after { background-size: 7px 3px; }
}
@media (max-width: 620px) {
  .video-intro { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .video-copy h1 { max-width: none; }
  .video-copy p { margin: 8px 0 9px; }
}
@media (max-width: 460px) {
  .brand { flex-wrap: wrap; }
  .carriers { width: 100%; }
  .carriers button { flex: 1; }
  .field { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 9px; }
  .booking-actions { align-items: start; flex-direction: column; }
  .line-toolbar { gap: 6px 9px; }
  .line-toolbar h3 { padding-right: 10px; }
  .line-toolbar button { padding-inline: 3px; font-size: .92rem; }
  th { padding-inline: 5px; }
  td select, td input { padding-inline: 5px; }
  .quantity-col { width: 18%; }
}
