@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --primary: #1A56DB;
  --secondary: #075E54;
  --bg: #F5F7FA;
  --ink: #1A2027;
  --ink-soft: #667080;
  --line: #E5E9EE;
  --card: #FFFFFF;
  --error: #D64545;
  --radius-lg: 20px;
  --radius-md: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--secondary);
  margin: 0;
}

.landing-wrap {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Header / hero ---------- */

.landing-header {
  background: linear-gradient(160deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 0 0 28px 28px;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.header-inner {
  padding: 28px 24px 34px;
  text-align: center;
}

.brand-logo {
  max-height: 52px;
  max-width: 70%;
  object-fit: contain;
  margin-bottom: 16px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
}

.landing-header h1 {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.landing-header .subheading {
  color: rgba(255,255,255,0.88);
  font-size: 0.95rem;
  margin-top: 10px;
  line-height: 1.5;
}

/* ---------- Form card ---------- */

.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  margin: -22px 16px 24px;
  padding: 24px 20px 26px;
  box-shadow: 0 8px 30px rgba(20, 30, 50, 0.08);
  position: relative;
  z-index: 2;
  flex: 1;
}

.form-field { margin-bottom: 16px; }

.form-field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.required { color: var(--error); margin-left: 3px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcfd;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea { resize: vertical; min-height: 70px; }

input[type="file"] {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--ink);
  background: #fbfcfd;
}
input[type="file"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.file-hint {
  font-size: 0.76rem;
  color: var(--ink-soft, #6b7280);
  margin: 6px 0 0;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
  background: #fff;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 5px;
  min-height: 0;
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.94rem;
}
.radio-option input { width: 18px; height: 18px; margin: 0; accent-color: var(--primary); }

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.4;
}
.checkbox-option input { width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--primary); }

.honeypot { display: none; }

.form-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-bottom: 10px;
  min-height: 0;
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: #fff;
  font-size: 1.02rem;
  font-weight: 700;
  font-family: 'Poppins', 'Inter', sans-serif;
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.submit-btn:active { transform: scale(0.98); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Success / closed states ---------- */

.success-state, .closed-state {
  text-align: center;
  padding: 30px 6px 10px;
}
.success-icon, .closed-icon { font-size: 3rem; margin-bottom: 10px; }
.success-state h2, .closed-state h2 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.success-state .muted, .closed-state .muted { color: var(--ink-soft); line-height: 1.5; }

/* ---------- Brochure download ---------- */

.brochure-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  width: 100%;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform 0.08s ease, opacity 0.15s ease;
}
.brochure-btn:active { transform: scale(0.98); }
.brochure-btn[hidden] { display: none; }
.brochure-btn-outline {
  background: transparent;
  color: var(--primary);
  margin: 0 0 18px;
}
.brochure-btn-icon { font-size: 1.1rem; }
.brochure-btn-size {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.78rem;
  opacity: 0.85;
}
.brochure-teaser {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.brochure-wa-note { margin-top: 12px; font-size: 0.88rem; }

/* ---------- Footer ---------- */

.landing-footer {
  text-align: center;
  padding: 10px 20px 30px;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* Plot enquiry form: the plot from the viewer's link (read-only) */
.plot-card { border: 1px solid rgba(0,0,0,.1); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: rgba(0,0,0,.02); }
.plot-card-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.plot-card-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 16px; margin: 0; }
.plot-card-rows dt { font-size: .75rem; opacity: .65; margin: 0; }
.plot-card-rows dd { margin: 0; font-weight: 600; }
.plot-card-link { display: inline-block; margin-top: 10px; color: var(--primary); font-weight: 600; text-decoration: none; }
