/* ============================================================
   Perfect LHD — Visit Booking Portal · Styles
   PLHD Brand Colors: Gold #f0d010 · Red #d02010 · Charcoal #1a1a1a · White
   Mobile-first. No build step.
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── PLHD Brand Palette ──────────────────────────────────── */
  --gold:        #f0d010;   /* Brand gold — logo circle, highlights */
  --gold-dark:   #c9a80d;   /* Gold hover/pressed */
  --gold-light:  #f8f4cc;   /* Gold tint bg */
  --gold-border: #e8e0a0;   /* Gold border */

  --red:         #d02010;   /* Brand red — accent, CTA buttons */
  --red-hover:   #b01a0c;   /* Red pressed */
  --red-light:   #fff0ee;   /* Red tint bg */
  --red-border:  #f5c0b8;   /* Red border */

  --charcoal:    #1a1a1a;   /* Dark surfaces — header bg, text */
  --charcoal-lt: #2a2a2a;   /* Charcoal light — hover states */
  --charcoal-mid:#4a4a4a;   /* Charcoal mid — muted text on light */

  --white:       #ffffff;
  --off-white:   #f8f8f6;   /* Warm off-white page bg */
  --border:      #e0ddd8;   /* Warm gray border */

  /* ── Semantic Tokens ─────────────────────────────────────── */
  --primary:     var(--gold);
  --primary-dk:  var(--gold-dark);
  --primary-lt:  var(--gold-light);
  --accent:      var(--red);
  --accent-dk:   var(--red-hover);
  --danger:      var(--red);
  --danger-bg:   var(--red-light);
  --danger-bdr:  var(--red-border);
  --success-bg:  #f0fff4;
  --success-bdr: #b8e8c8;
  --success-text:#1a4a2a;

  --text:        var(--charcoal);
  --text-muted:  var(--charcoal-mid);
  --bg:          var(--off-white);
  --radius:      10px;
  --shadow:      0 2px 12px rgba(26,26,26,.08);
  --shadow-lg:    0 6px 24px rgba(26,26,26,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--charcoal);
  color: var(--white);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 12px rgba(0,0,0,.30);
}

.header-logo {
  height: 44px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.header-text h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: -.2px;
}
.header-text p {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin-top: 1px;
}

/* ── Hero / Landing ───────────────────────────────────────── */
.hero {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
  padding: 52px 24px 48px;
  position: relative;
  overflow: hidden;
}

/* Gold accent bar at top of hero */
.hero::before {
  content: '';
  display: block;
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gold);
}

.hero-icon { font-size: 48px; line-height: 1; margin-bottom: 16px; }
.hero h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}
.hero p {
  font-size: 15px;
  color: rgba(255,255,255,.72);
  max-width: 420px;
  margin: 0 auto 28px;
}

.btn-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .1s;
  box-shadow: 0 4px 16px rgba(240,208,16,.30);
}
.btn-cta:hover  { background: var(--gold-dark); transform: translateY(-1px); }
.btn-cta:active { transform: translateY(0); }

/* ── Highlights bar ───────────────────────────────────────── */
.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.highlight-item {
  flex: 1 1 120px;
  text-align: center;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
}
.highlight-item:last-child { border-right: none; }
.highlight-item .hi-icon { font-size: 22px; }
.highlight-item .hi-label { font-size: 12px; color: var(--charcoal-mid); margin-top: 4px; }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 32px 20px; }
.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.section-sub {
  font-size: 13px;
  color: var(--charcoal-mid);
  margin-bottom: 24px;
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.form-group label .req { color: var(--red); margin-left: 2px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }

.form-group textarea { resize: vertical; min-height: 72px; }

.field-hint { font-size: 11.5px; color: var(--charcoal-mid); }

.error-msg {
  font-size: 12px;
  color: var(--red);
  display: none;
}
.has-error input,
.has-error select,
.has-error textarea { border-color: var(--red); }
.has-error .error-msg { display: block; }

.is-valid input,
.is-valid select,
.is-valid textarea { border-color: var(--success-bdr); }

/* ── Address + Map ────────────────────────────────────────── */
.address-grid {
  margin-top: 4px;
}

.map-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-label .req { color: var(--red); }

.location-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-secondary {
  appearance: none;
  border: 1.5px solid var(--gold-border);
  background: var(--gold-light);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .1s;
}
.btn-secondary:hover {
  background: #f2ebaa;
  border-color: var(--gold-dark);
}
.btn-secondary:active {
  transform: translateY(1px);
}

.location-status {
  min-height: 20px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--charcoal-mid);
}
.location-status.is-info { color: var(--charcoal-mid); }
.location-status.is-success { color: var(--success-text); }
.location-status.is-error { color: var(--red); }

#map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  overflow: hidden;
}

.map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 18px;
  text-align: center;
  border: 1.5px dashed var(--gold-border);
  border-radius: 8px;
  background: var(--gold-light);
  color: var(--charcoal-mid);
  font-size: 13px;
}

.map-hint {
  font-size: 12px;
  color: var(--charcoal-mid);
  margin-top: 6px;
}

/* ── Fee Preview ──────────────────────────────────────────── */
#fee-preview {
  display: none;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

#fee-preview.in-area {
  background: var(--success-bg);
  border: 1.5px solid var(--success-bdr);
  color: var(--success-text);
}

#fee-preview.out-of-area {
  background: var(--danger-bg);
  border: 1.5px solid var(--danger-bdr);
  color: var(--red);
}

#fee-preview strong { font-weight: 700; }

/* ── Submit button ────────────────────────────────────────── */
.btn-submit {
  display: block;
  width: 100%;
  background: var(--red);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background .2s, transform .1s;
  font-family: inherit;
}
.btn-submit:hover:not(:disabled)  { background: var(--red-hover); }
.btn-submit:active:not(:disabled) { transform: scale(.99); }
.btn-submit:disabled { opacity: .55; cursor: not-allowed; }

/* ── Demo badge ───────────────────────────────────────────── */
.demo-banner {
  text-align: center;
  font-size: 12px;
  color: var(--charcoal-mid);
  background: var(--gold-light);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

/* ── Success screen ───────────────────────────────────────── */
#success-screen {
  display: none;
  text-align: center;
  padding: 48px 24px;
}

.success-icon { font-size: 64px; margin-bottom: 16px; }
#success-screen h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 8px;
}
#success-screen p { color: var(--charcoal-mid); margin-bottom: 6px; }

.success-card {
  background: var(--success-bg);
  border: 1.5px solid var(--success-bdr);
  border-radius: var(--radius);
  padding: 20px;
  margin: 24px auto;
  max-width: 420px;
  text-align: left;
}
.success-card .row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--success-bdr);
  font-size: 14px;
}
.success-card .row:last-child { border-bottom: none; }
.success-card .row .lbl { color: var(--charcoal-mid); }
.success-card .row .val { font-weight: 600; color: var(--charcoal); }

.btn-new {
  display: inline-block;
  margin-top: 20px;
  background: var(--gold-light);
  color: var(--charcoal);
  padding: 11px 28px;
  border-radius: 50px;
  font-weight: 700;
  border: 1.5px solid var(--gold-border);
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background .2s;
}
.btn-new:hover { background: var(--gold-border); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: 12px;
  color: var(--charcoal-mid);
  border-top: 2px solid var(--gold);
  background: var(--white);
}

/* ── Responsive: two-column form on wider screens ─────────── */
@media (min-width: 640px) {
  .form-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid.two-col .span-2 { grid-column: 1 / -1; }

  #map { height: 380px; }
  .hero h2 { font-size: 32px; }
}

@media (min-width: 768px) {
  .section {
    padding: 40px 40px;
    max-width: 720px;
    margin: 0 auto;
  }
  .hero { padding: 64px 24px 60px; }
}
