/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
               sans-serif;
  color: #fff;
  background: #1c2532;
  min-height: 100vh;
  position: relative;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ----- Background photo (full bleed, fixed) ----- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url("assets/background-desktop.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(10, 16, 28, 0.55);
}
@media (max-width: 960px) {
  body::before { background-image: url("assets/background-mobile.webp"); }
}

/* ----- Top bar ----- */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 24px;
  min-height: 56px;
  background: linear-gradient(180deg, #34495e 0%, #2c3e50 100%);
  box-shadow: 0 1px 0 rgba(0,0,0,0.2);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 2px;
}
.brand-name {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.strapline {
  position: absolute;
  left: 0; right: 0;
  text-align: center;
  color: #fff8d6;
  font-weight: 700;
  font-size: 16px;
  pointer-events: none;
}
@media (max-width: 760px) {
  .brand-name { display: none; }
  .strapline {
    position: static;
    margin-left: 12px;
    text-align: left;
    font-size: 13px;
  }
}

/* ----- Page wrapper ----- */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 12px;
  text-align: center;
}

/* ----- Hero ----- */
.hero h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 auto 14px;
  max-width: 820px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.accent-underline {
  position: relative;
  display: inline-block;
}
.accent-underline::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -4px;
  height: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8' preserveAspectRatio='none'><path d='M0 4 Q10 0 20 4 T40 4 T60 4 T80 4' stroke='%23ff6b35' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: repeat-x;
  background-size: 40px 8px;
}
.hero .sub {
  font-size: 16px;
  color: #f0f0f0;
  margin: 6px auto 0;
  max-width: 640px;
  line-height: 1.5;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.accent { color: #ff6b35; font-weight: 700; }
.accent-italic { color: #ff6b35; font-style: italic; font-weight: 600; }

@media (max-width: 600px) {
  .hero h1 { font-size: 22px; }
  .hero .sub { font-size: 14px; }
}

/* ----- Timer bar ----- */
.timer-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px auto 22px;
  max-width: 640px;
  padding: 12px 16px;
  background: rgba(220, 220, 220, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  color: #2a2a2a;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  line-height: 1.4;
}
.timer-chip {
  flex-shrink: 0;
  background: #1a2942;
  color: #fff;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 3px;
  padding: 8px 12px;
  border-radius: 6px;
  min-width: 80px;
  text-align: center;
}

/* ----- Question card ----- */
.card {
  background: #fff;
  color: #333;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  padding: 28px 32px;
  max-width: 640px;
  margin: 0 auto 22px;
  text-align: center;
}
.card .step-counter {
  font-size: 13px;
  color: #888;
  margin: 0 0 14px;
}
.card h2 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 22px;
  color: #2a2a2a;
}
.card .req { color: #d32323; }

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-btn {
  display: block;
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #2a2a2a;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.option-btn:hover {
  background: #f5f7fa;
  border-color: #aab2bd;
}
.option-btn:active { transform: scale(0.998); }

textarea.textbox {
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #2a2a2a;
  resize: vertical;
}
textarea.textbox:focus {
  outline: none;
  border-color: #5b8def;
}
.char-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin: 6px 2px 14px;
}
.char-min { color: #d32323; }
.char-count { color: #888; }

input.textbox {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dde2;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: #2a2a2a;
}
input.textbox:focus { outline: none; border-color: #5b8def; }
.field-label {
  display: block;
  text-align: left;
  font-size: 14px;
  margin: 0 0 6px;
  color: #2a2a2a;
}
.field-row { margin-bottom: 16px; text-align: left; }
.field-hint { font-size: 12px; color: #888; margin: 4px 2px 0; }
.field-error { font-size: 12px; color: #d32323; margin: 4px 2px 0; min-height: 14px; }

.continue-btn {
  display: block;
  width: 200px;
  margin: 6px auto 0;
  padding: 12px 16px;
  background: #d8dde2;
  color: #6a7383;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s;
}
.continue-btn.enabled {
  background: #ff6b35;
  color: #fff;
  cursor: pointer;
}
.continue-btn.enabled:hover { background: #e85c2a; }
.continue-btn:disabled { cursor: not-allowed; }

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  background: #ff6b35;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.submit-btn:hover { background: #e85c2a; }

.form-intro {
  font-size: 14px;
  color: #555;
  margin: 0 0 16px;
  line-height: 1.5;
  text-align: center;
}

.thankyou h2 { color: #2a7a3a; font-size: 22px; margin-bottom: 12px; }
.thankyou p { font-size: 15px; color: #444; line-height: 1.55; }
.thankyou .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #2a7a3a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin: 0 auto 18px;
}

/* ----- Reassure copy ----- */
.reassure {
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin: 28px 0 18px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.rating-label {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 22px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ----- Badges ----- */
.badges {
  display: flex;
  justify-content: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 0 20px;
}
.badge {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
}
.badge img { width: 100%; height: auto; max-width: 220px; }

@media (max-width: 700px) {
  .badges { flex-direction: column; gap: 10px; }
  .badge { min-height: 78px; }
}

/* ----- Footer ----- */
.legal {
  background: rgba(0, 0, 0, 0.4);
  color: #cfd5dc;
  font-size: 11px;
  line-height: 1.55;
  padding: 28px 20px 24px;
  text-align: center;
}
.legal p {
  max-width: 980px;
  margin: 0 auto 8px;
}
.legal a { color: #cfd5dc; text-decoration: underline; }
.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 10px;
  font-size: 12px;
}
.legal-links a { color: #fff; }
.copyright { color: #aab2bd; font-size: 12px; margin-top: 8px; }
