/* Electric beds funnel: page styles, shared by all three pages.
   Layout stays inline in the HTML (same convention as the other funnels).
   This file holds what inline styles can't express: interactive states,
   the FAQ accordion, the rails, the forms and the footer. */

* { box-sizing: border-box; }
body { margin: 0; background: var(--gt-cream); }
input::placeholder, textarea::placeholder { color: var(--gt-muted); opacity: 1; }

/* ---------- Buttons ---------- */
.eb-btn {
  font-family: var(--font-sans); font-weight: 700; border: 0; cursor: pointer;
  border-radius: 999px; text-decoration: none; display: inline-block; text-align: center;
  transition: transform 200ms var(--ease-warm), box-shadow 200ms var(--ease-warm),
              background 200ms var(--ease-warm), color 200ms var(--ease-warm);
}
.eb-btn:active { transform: scale(0.98); }

.eb-btn-primary {
  font-size: 18px; color: #fff; padding: 16px 32px; min-height: 54px;
  background: linear-gradient(180deg, #d2477f 0%, #b8336a 60%, #962556 100%);
  box-shadow: 0 10px 24px rgba(184, 51, 106, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.eb-btn-primary:hover {
  color: #fff; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 16px 32px rgba(184, 51, 106, 0.5);
}
.eb-btn-primary.is-sm { font-size: 17px; padding: 14px 26px; min-height: 50px; }
.eb-btn-primary.is-lg { padding: 17px 32px; min-height: 56px; }

.eb-btn-outline {
  font-size: 16px; color: var(--gt-burgundy); background: transparent;
  border: 2px solid var(--gt-burgundy); padding: 11px 20px; min-height: 46px;
}
.eb-btn-outline:hover { background: var(--gt-burgundy); color: #fff; text-decoration: none; }

.eb-btn-white {
  font-size: 18px; font-weight: 800; color: var(--gt-burgundy-ink); background: #fff;
  padding: 16px 36px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}
.eb-btn-white:hover {
  color: var(--gt-burgundy); text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.34);
}

.eb-btn-wa {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 17px; color: #fff; background: #25d366;
  padding: 14px 28px; min-height: 50px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.32);
}
.eb-btn-wa:hover {
  color: #fff; text-decoration: none;
  transform: translateY(-2px); box-shadow: 0 14px 28px rgba(37, 211, 102, 0.42);
}

.eb-btn[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
.eb-btn[disabled]:hover { transform: none; box-shadow: none; }

/* ---------- Forms ---------- */
.eb-field {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 16px; font-weight: 600; color: var(--gt-ink);
}
.eb-input, .eb-textarea {
  font-family: var(--font-sans); font-size: 17px; padding: 13px 16px;
  border: 1px solid var(--gt-line); border-radius: 8px;
  background: var(--gt-white); color: var(--gt-ink);
  outline: none; width: 100%; min-height: 48px;
  transition: border-color 200ms var(--ease-warm), box-shadow 200ms var(--ease-warm);
}
.eb-textarea { border-radius: 10px; line-height: 1.5; resize: vertical; min-height: 92px; }
.eb-input:focus, .eb-textarea:focus {
  border-color: var(--gt-burgundy); box-shadow: 0 0 0 3px rgba(184, 51, 106, 0.12);
}
.eb-input.is-error, .eb-textarea.is-error { border-color: var(--gt-danger); }
.eb-input-tel { direction: ltr; text-align: right; }
.eb-error { font-size: 14px; font-weight: 600; color: var(--gt-danger); }

/* Terms consent, same pattern as the spray-tan funnel */
.eb-consent {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--gt-body);
  text-align: right;
}
.eb-consent input[type="checkbox"] {
  width: 17px; height: 17px; min-width: 17px; margin-top: 1px;
  accent-color: var(--gt-burgundy); cursor: pointer;
}
.eb-consent a { color: var(--gt-burgundy); text-decoration: underline; }
.eb-consent.is-error, .eb-consent.is-error a { color: var(--gt-danger); }

/* ---------- Quiz options ---------- */
.eb-opt {
  display: flex; align-items: center; gap: 12px; width: 100%;
  font-size: 17px; font-weight: 500; color: var(--gt-ink);
  background: var(--gt-white); border: 2px solid var(--gt-line); border-radius: 10px;
  padding: 14px 16px; min-height: 52px; cursor: pointer;
  transition: border-color 180ms var(--ease-warm), background 180ms var(--ease-warm), color 180ms var(--ease-warm);
}
.eb-opt:hover { border-color: var(--gt-burgundy); }
.eb-opt input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.eb-opt-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--gt-line); background: transparent; flex-shrink: 0;
  transition: border-color 180ms var(--ease-warm), background 180ms var(--ease-warm), box-shadow 180ms var(--ease-warm);
}
.eb-opt:has(input:checked) {
  font-weight: 700; color: var(--gt-burgundy-ink);
  background: var(--gt-pink-soft); border-color: var(--gt-burgundy);
}
.eb-opt:has(input:checked) .eb-opt-dot {
  border-color: var(--gt-burgundy); background: var(--gt-burgundy);
  box-shadow: inset 0 0 0 3px #fff;
}
.eb-opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(184, 51, 106, 0.18); }
.eb-qcard.is-error { border-color: var(--gt-danger); }

/* ---------- Rails ---------- */
.eb-rail {
  display: flex; overflow-x: auto; gap: 16px;
  scroll-snap-type: x proximity;
  padding: 8px clamp(20px, 4vw, 48px) 24px;
  scroll-padding-inline: clamp(20px, 4vw, 48px);
  scrollbar-width: none;
}
.eb-rail::-webkit-scrollbar { display: none; }
.eb-rail > * { flex: 0 0 clamp(250px, 64vw, 300px); scroll-snap-align: start; }

.eb-rail-shots { gap: 12px; padding: 4px clamp(20px, 4vw, 48px) 18px; scroll-snap-type: none; }
.eb-rail-shots > * { flex: 0 0 clamp(210px, 62vw, 250px); }

.eb-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gt-white); border: 1px solid var(--gt-line);
  color: var(--gt-burgundy); font-family: var(--font-sans); font-size: 22px; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow-sm); display: grid; place-items: center;
  transition: background 180ms var(--ease-warm), color 180ms var(--ease-warm);
}
.eb-arrow:hover { background: var(--gt-burgundy); color: #fff; }
.eb-arrow:active { transform: scale(0.95); }

/* ---------- FAQ accordion ---------- */
.eb-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; text-align: right; font-family: var(--font-sans);
  font-size: 17px; font-weight: 700; color: var(--gt-ink);
  background: none; border: 0; padding: 18px 20px; cursor: pointer; min-height: 44px;
  transition: color 200ms var(--ease-warm);
}
.eb-faq-q:hover { color: var(--gt-burgundy); }
.eb-faq-chevron {
  color: var(--gt-burgundy); font-size: 22px; font-weight: 400; flex-shrink: 0;
  transform: rotate(-90deg); transition: transform 200ms var(--ease-warm);
}
.eb-faq-q[aria-expanded="true"] .eb-faq-chevron { transform: rotate(90deg); }
.eb-faq-a {
  padding: 0 20px 20px; font-size: 16px; line-height: 1.65;
  color: var(--gt-body); white-space: pre-line;
}
.eb-faq-a[hidden] { display: none; }

/* Catalog card image box.
   min-height:0 matters: as a column flex item the box would otherwise take
   the image's intrinsic height as its automatic minimum, and the portrait
   renders came out taller than the landscape ones. */
.eb-card-media {
  aspect-ratio: 1 / 1;
  min-height: 0;
  flex: none;
  overflow: hidden;
  background: var(--gt-pink-soft);
}

/* Colour chips on the catalog cards */
.eb-swatch {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid rgba(42, 22, 32, 0.15);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

/* ---------- Images ---------- */
.eb-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Mobile: the hero photo gives up height so the lead form reads as a form
   above the fold, not as a stray heading. 160px puts the first field and the
   top of the second one in view on a phone. The box needs an explicit height,
   not a smaller min-height: the image is height:100% of an auto-height parent,
   so it bottoms out at its own 16:9 height (187px at this width) and ignores
   anything lower. With a real height set, object-fit: cover crops it instead. */
.eb-hero-media { min-height: clamp(280px, 60vw, 460px); }

@media (max-width: 767px) {
  .eb-hero-media { min-height: 0; height: 160px; }
}

/* ---------- Footer (shared across the funnels) ---------- */
.site-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 16px 22px; font-size: 12px; color: var(--gt-muted); direction: rtl;
  background: var(--gt-cream);
}
.site-footer a {
  color: var(--gt-muted); text-decoration: underline; text-underline-offset: 2px;
  transition: color 160ms var(--ease-warm);
}
.site-footer a:hover { color: var(--gt-burgundy); }
.site-footer-dot { opacity: 0.5; }

@media (prefers-reduced-motion: reduce) {
  .eb-btn, .eb-arrow, .eb-faq-chevron, .eb-input, .eb-textarea, .eb-opt { transition: none; }
  .eb-btn:hover, .eb-btn-white:hover, .eb-btn-wa:hover { transform: none; }
}
