/* card-frame/frame.css: the card boxes, styled to sit inside the booking
   form (same border, corner and text sizes). The only style the page may
   load (_headers style-src). 16px inputs: smaller text makes iPhones zoom in
   when a box is tapped. */

:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #222;
  -webkit-text-size-adjust: 100%;
}

[hidden] { display: none !important; }

form { margin: 0; padding: 2px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

label { font-size: 13px; font-weight: 500; color: #222; }

input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #222;
  background: #fff;
  border: 1px solid #B0B0B0;
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder { color: #8a8a8a; }

input:focus { border-color: #222; box-shadow: 0 0 0 1px #222; }

input[aria-invalid="true"] { border-color: #C13515; }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 1px #C13515; }

.error { margin: 0; min-height: 0; font-size: 13px; line-height: 1.4; color: #C13515; }
.error:empty { display: none; }

.note { margin: 8px 2px; font-size: 14px; color: #555; }
