/* ============================================================================
   Gulf Shores Rentals — shared styles
   Coastal, modern, high-contrast, and built to survive pinch-zoom + big text.
   ========================================================================== */

:root {
  /* Palette — Gulf coast: turquoise sea, warm sand, sunset coral */
  --sea-900: #06323f;
  --sea-700: #0b5566;
  --sea-500: #0ea5b7;
  --sea-400: #22c3d6;
  --sea-300: #7fdfe9;
  --sand-100: #fbf6ee;
  --sand-200: #f4e9d8;
  --sand-300: #e9d8bf;
  --coral: #ff7a59;
  --coral-dark: #f0603c;
  --ink: #0f2a33;
  --ink-soft: #3f5a63;
  --white: #ffffff;
  --ok: #10b981;
  --err: #e5484d;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 10px rgba(6, 50, 63, 0.08);
  --shadow-md: 0 12px 34px rgba(6, 50, 63, 0.14);
  --shadow-lg: 0 26px 60px rgba(6, 50, 63, 0.22);

  /* Manager text-size control multiplies this. */
  --scale: 1;
  font-size: calc(17px * var(--scale));

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(127, 223, 233, 0.35), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(255, 122, 89, 0.12), transparent 55%),
    var(--sand-100);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--sea-700); }

.container { width: min(920px, 92vw); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--coral), var(--coral-dark));
  box-shadow: 0 10px 24px rgba(240, 96, 60, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  text-decoration: none;
  min-height: 54px;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(240, 96, 60, 0.42); }
.btn:active { transform: translateY(0); }
.btn:disabled { filter: grayscale(0.5) opacity(0.6); cursor: default; transform: none; }

.btn-sea {
  background: linear-gradient(135deg, var(--sea-500), var(--sea-700));
  box-shadow: 0 10px 24px rgba(11, 85, 102, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--sea-700);
  border: 2px solid rgba(11, 85, 102, 0.25);
  box-shadow: none;
}
.btn-ghost:hover { background: rgba(14, 165, 183, 0.08); box-shadow: none; }

:focus-visible { outline: 3px solid var(--sea-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  padding: clamp(3.5rem, 9vw, 7rem) 0 8rem;
  background: linear-gradient(160deg, var(--sea-400) 0%, var(--sea-500) 35%, var(--sea-700) 78%, var(--sea-900) 100%);
  overflow: hidden;
}
.hero::after { /* soft sun glow */
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -60px; top: -80px;
  background: radial-gradient(circle, rgba(255, 214, 150, 0.55), transparent 65%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-top { display: flex; justify-content: flex-end; margin-bottom: 0.6rem; }
.hero-signin {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #ffffff; text-decoration: none; font-weight: 700; font-size: 1rem;
  background: rgba(255, 255, 255, 0.18); border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 0.6rem 1.15rem; border-radius: 999px; min-height: 46px;
  transition: background 0.15s ease;
}
.hero-signin:hover { background: rgba(255, 255, 255, 0.3); }

/* On phones, make the "Gulf Shores, Alabama" badge the dominant element
   at the top, larger than the small owner sign-in link. */
@media (max-width: 620px) {
  .hero-signin { font-size: 0.8rem; padding: 0.45rem 0.85rem; min-height: 40px; }
  .badge { font-size: 1.2rem; padding: 0.55rem 1.15rem; }
}
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.4rem 0.95rem; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); font-weight: 800; max-width: 15ch; }
.hero .lede { margin-top: 1.1rem; font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 44ch; color: rgba(255, 255, 255, 0.92); }
.hero .cta-row { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* animated waves at the bottom of the hero */
.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 1; }
.waves path { fill: var(--sand-100); }

/* quick trust strip */
.facts { display: flex; flex-wrap: wrap; gap: 1.4rem 2.4rem; margin-top: 2.4rem; }
.facts div { display: flex; flex-direction: column; }
.facts b { font-size: 1.4rem; }
.facts span { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); }

/* ---------- Form ---------- */
.form-wrap { margin-top: -5rem; position: relative; z-index: 3; padding-bottom: 4rem; }
.form-card { padding: clamp(1.4rem, 4vw, 2.8rem); }
.form-card > header { margin-bottom: 1.6rem; }
.form-card > header h2 { font-size: 1.75rem; }
.form-card > header p { color: var(--ink-soft); margin-top: 0.4rem; }

fieldset {
  border: none; margin: 0; padding: 0;
  padding-top: 1.6rem; margin-top: 1.6rem;
  border-top: 1px dashed rgba(15, 42, 51, 0.14);
}
fieldset:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
legend {
  font-weight: 800; font-size: 1.15rem; color: var(--sea-700);
  display: flex; align-items: center; gap: 0.6rem; padding: 0; margin-bottom: 1rem;
}
legend .num {
  display: inline-grid; place-items: center;
  width: 1.9rem; height: 1.9rem; border-radius: 999px;
  background: var(--sea-500); color: var(--white); font-size: 0.9rem;
}

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .req { color: var(--coral-dark); }
.field .hint { font-size: 0.82rem; color: var(--ink-soft); font-weight: 400; }

/* Date-of-birth Month / Day / Year selectors */
.dob-row { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 0.5rem; }

input, select, textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 0.85rem 0.95rem;
  border: 1.5px solid rgba(15, 42, 51, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
  min-height: 52px;
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--sea-500);
  box-shadow: 0 0 0 4px rgba(14, 165, 183, 0.16);
}
input::placeholder, textarea::placeholder { color: #9aabb0; }

/* yes/no segmented control */
.yn { display: inline-flex; background: var(--sand-200); border-radius: 12px; padding: 4px; gap: 4px; }
.yn label {
  position: relative; cursor: pointer; font-weight: 600; font-size: 0.95rem;
  padding: 0.5rem 1.15rem; border-radius: 9px; user-select: none; color: var(--ink-soft);
}
.yn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.yn input:checked + span { background: var(--white); color: var(--sea-700); box-shadow: var(--shadow-sm); }
.yn span { display: block; padding: 0.5rem 1.15rem; margin: -0.5rem -1.15rem; border-radius: 9px; transition: 0.15s; }

/* driver's license upload */
.upload-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 620px) { .upload-grid { grid-template-columns: 1fr; } }
.uploader { position: relative; }
.drop {
  width: 100%; min-height: 160px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
  background: rgba(14, 165, 183, 0.06);
  border: 2.5px dashed rgba(14, 165, 183, 0.45);
  border-radius: 18px; color: var(--sea-700); font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  padding: 1rem;
}
.drop:hover, .drop.drag { background: rgba(14, 165, 183, 0.12); border-color: var(--sea-500); }
.drop:active { transform: scale(0.99); }
.drop.busy { opacity: 0.7; pointer-events: none; }
.drop.error { border-color: var(--err); background: rgba(229, 72, 77, 0.07); }
.drop.error .drop-sub { color: var(--err); font-weight: 700; }
.drop-ico { font-size: 2.4rem; }
.drop-title { font-weight: 800; font-size: 1.1rem; }
.drop-sub { font-size: 0.9rem; color: var(--ink-soft); }
.preview { border-radius: 18px; overflow: hidden; border: 2px solid rgba(14, 165, 183, 0.35); background: #000; }
.preview img { width: 100%; max-height: 240px; object-fit: contain; display: block; background: #0c1a1f; }
.preview-actions { display: flex; gap: 0.5rem; padding: 0.6rem; background: var(--white); }
.chip {
  flex: 1; border: 1.5px solid rgba(15, 42, 51, 0.18); background: var(--white); color: var(--ink);
  border-radius: 999px; padding: 0.6rem; font-weight: 700; font-family: inherit; cursor: pointer; min-height: 46px; font-size: 0.95rem;
}
.chip:hover { background: var(--sand-100); }
.chip.danger { color: var(--err); border-color: rgba(229, 72, 77, 0.35); }
.chip.danger:hover { background: rgba(229, 72, 77, 0.08); }

/* consent + signature */
.consent {
  display: flex; gap: 0.85rem; align-items: flex-start;
  background: var(--sand-200); padding: 1rem 1.15rem; border-radius: 14px; margin-top: 0.5rem;
}
.consent input { width: 26px; height: 26px; min-height: 0; flex: none; margin-top: 2px; accent-color: var(--sea-500); }
.consent label { font-size: 0.92rem; color: var(--ink-soft); font-weight: 400; }

.submit-row { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.submit-row .btn { width: 100%; font-size: 1.15rem; padding: 1.15rem; }
.fineprint { font-size: 0.82rem; color: var(--ink-soft); text-align: center; }

/* status toast */
.toast { position: fixed; inset: auto 0 1.4rem 0; display: flex; justify-content: center; z-index: 50; pointer-events: none; }
.toast .pill {
  background: var(--ink); color: var(--white); padding: 0.9rem 1.4rem; border-radius: 999px;
  box-shadow: var(--shadow-lg); font-weight: 600; transform: translateY(140%); transition: transform 0.4s cubic-bezier(.2,.9,.3,1.2);
}
.toast.show .pill { transform: translateY(0); }
.toast.err .pill { background: var(--err); }
.toast.ok .pill { background: var(--ok); }

/* success screen */
.done {
  text-align: center; padding: clamp(2rem, 6vw, 4rem);
}
.done .ring { width: 96px; height: 96px; margin: 0 auto 1.2rem; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--sea-400), var(--sea-700)); color: #fff; font-size: 2.6rem; box-shadow: var(--shadow-md); }
.done h2 { font-size: 2rem; }
.done p { color: var(--ink-soft); margin-top: 0.6rem; }

/* footer */
.foot { text-align: center; color: var(--ink-soft); font-size: 0.85rem; padding: 2.5rem 0 3rem; }
.foot a { color: var(--sea-700); font-weight: 600; }
/* Large, high-contrast owner sign-in for low-vision use.
   Note the .foot prefix: it must out-specify ".foot a", which would
   otherwise recolor the label dark teal and make it hard to read. */
.foot .owner-btn {
  font-size: 1.5rem;
  font-weight: 800;
  padding: 1.3rem 2.8rem;
  min-height: 76px;
  border-radius: 999px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.foot .owner-btn:hover { box-shadow: 0 16px 32px rgba(11, 85, 102, 0.42); }

.hidden { display: none !important; }
