/* HowKonvenient theme: only yellow and turquoise, from the business card.
   Text uses a deep shade of the brand turquoise so it stays readable on both. */
:root {
  --turquoise: #4FD2DB;
  --turquoise-deep: #08555C; /* text and dark buttons */
  --yellow: #FDDD64;
  --yellow-light: #FFF3C4;   /* form fields */
  --error: #8A1010;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
  font: 600 18px/1.3 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--turquoise);
  color: var(--turquoise-deep);
}

/* ---- Header ---- */
.topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--turquoise);
  border-bottom: 4px solid var(--yellow);
  flex: none;
}
.logo { width: 50px; height: 50px; flex: none; }
.brand {
  color: var(--yellow);
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0.5px;
}
.wa {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--yellow);
  color: var(--turquoise-deep);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border-radius: 999px;
}
.wa svg { width: 20px; height: 20px; }

/* ---- Screens ---- */
main {
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
}

.screen {
  width: 100%;
  max-width: 540px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto; /* safety net on very small screens only */
}
.screen[hidden] { display: none; }

h1 { font-size: 27px; font-weight: 900; margin: 2px 0; line-height: 1.15; }
p { margin: 0; }
.step, .hint { font-size: 16px; font-weight: 700; }
small { font-size: 15px; font-weight: 600; opacity: 0.85; }

.stack { display: flex; flex-direction: column; gap: 8px; }

button { font: inherit; cursor: pointer; color: var(--turquoise-deep); }

/* Choice buttons: yellow cards */
.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 58px;
  padding: 10px 16px;
  text-align: left;
  font-size: 18px;
  background: var(--yellow);
  border: 3px solid transparent;
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--turquoise-deep);
}
.option strong { font-size: 19px; font-weight: 900; }
.option:hover, .option:focus-visible { border-color: var(--turquoise-deep); outline: none; }
.option:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--turquoise-deep); }
.option.big { min-height: 78px; }
.option.big strong { font-size: 21px; }

/* Round trip stands out: deep turquoise with yellow text */
.option.roundtrip { background: var(--turquoise-deep); color: var(--yellow); box-shadow: 0 3px 0 var(--yellow); }
.option.roundtrip small, .option.roundtrip s { color: var(--yellow); }
.option.roundtrip:hover, .option.roundtrip:focus-visible { border-color: var(--yellow); }

.price { white-space: nowrap; text-align: right; font-weight: 900; }
.price s { font-size: 15px; font-weight: 600; opacity: 0.8; }

.badge {
  background: var(--yellow);
  color: var(--turquoise-deep);
  font-weight: 900;
  font-size: 13px;
  padding: 2px 9px;
  border-radius: 999px;
}

/* ---- Forms ---- */
form { display: flex; flex-direction: column; gap: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
label { display: flex; flex-direction: column; gap: 3px; font-size: 16px; font-weight: 800; }
label[hidden], .row[hidden], .row3[hidden] { display: none; }

input, select, textarea {
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--turquoise-deep);
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 3px solid transparent;
  border-radius: 10px;
  background: var(--yellow-light);
}
input::placeholder, textarea::placeholder { color: var(--turquoise-deep); opacity: 0.55; font-weight: 600; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--turquoise-deep); }
textarea { resize: none; }

.check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  background: var(--yellow);
  padding: 10px 12px;
  border-radius: 12px;
}
.check input { width: 22px; min-height: 22px; margin-top: 2px; flex: none; accent-color: var(--turquoise-deep); }

.invalid { border-color: var(--error) !important; }
.error {
  color: var(--error);
  background: var(--yellow);
  font-size: 16px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 10px;
}
.error:empty { display: none; }

.actions { display: flex; gap: 8px; margin-top: 4px; }
.actions button { flex: 1; min-height: 54px; border-radius: 14px; font-size: 19px; font-weight: 900; }
.primary { background: var(--turquoise-deep); color: var(--yellow); border: none; box-shadow: 0 3px 0 var(--yellow); }
.primary:disabled { opacity: 0.6; }
.secondary { background: transparent; color: var(--turquoise-deep); border: 3px solid var(--turquoise-deep); flex: 0 0 30% !important; }

/* ---- Summary ---- */
.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
  background: var(--yellow);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 16px;
}
.summary dt { font-weight: 600; opacity: 0.85; }
.summary dd { margin: 0; font-weight: 800; }

.total {
  display: flex;
  justify-content: space-between;
  font-size: 23px;
  font-weight: 900;
  padding: 0 4px;
}
