/* =========================
   THEME VARIABLES
========================= */
:root {
  --dark-purple: #331E36;
  --tekhelet: #41337A;
  --air-blue: #6EA4BF;
  --mint-green: #C2EFEB;
  --honeydew: #ECFEE8;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-padding-container {
  padding: 0 1.5rem;
}

.hero-overlay {
  background-color: rgba(0, 0, 0, 0.45);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  box-sizing: border-box;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.6);
}

.hero-overlay h1 span {
  display: block;
}

.hero-overlay .line1 {
  margin-bottom: 2rem;
}

.hero-actions {
  text-align: center;
  margin-top: 2rem;
}

.btn-primary {
  background-color: #6EA4BF;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 12px; /* Match new style */
  text-decoration: none;
  display: inline-block;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background-color: #5a8aa4;
  transform: translateY(-2px);
}

/* Unify <a> and <button> that use .btn-primary */
button.btn-primary,
input[type="submit"].btn-primary{
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
  border: 0;
  background-color: var(--air-blue);
  color: #fff;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0,0,0,.2);
  background-clip: padding-box;         /* kills the thin white rim in Safari */
  -webkit-tap-highlight-color: transparent;
}

button.btn-primary::-moz-focus-inner{ border:0; padding:0; }

.btn-primary:focus-visible{
  outline: 3px solid rgba(65,51,122,.35);
  outline-offset: 2px;
}


/* Mobile hero adjustments */
@media (max-width: 768px) {
  .hero {
    height: 60vh;
    background-size: cover; /* Fill space on small screens */
  }
}

/* =========================
   HOW IT WORKS
========================= */
.how-it-works {
  padding: 2rem 1rem;
}

.how-it-works-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.how-it-works-heading h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

.step-section {
  background-color: #C2EFEB;
  padding: 3rem 2rem;
  border-radius: 30px;
  margin: 2rem auto;
  max-width: 1200px;
}

.step-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.step-circle {
  flex: 0 0 auto;
  background-color: white;
  color: #6EA4BF;
  font-weight: 600;
  font-size: 1.2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 8px rgba(110, 164, 191, 0.3);
  margin-bottom: 1rem;
}

.step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.step-text {
  max-width: 600px;
}

.step-visual, .step-img {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step-img {
  max-width: 100%;
  height: auto;
}

/* Mobile step sizing */
@media (max-width: 768px) {
  .step-img {
    max-width: 250px;
    max-height: 180px;
  }
}

/* Tablet & Desktop step layout */
@media (min-width: 768px) {
  .step-container {
    flex-direction: row;
    align-items: center; /* Center vertically */
    text-align: left;
  }

  .step-circle {
    margin-right: 1.5rem;
    align-self: center;
  }

  .step-content {
    flex-direction: row;
    gap: 2rem;
    flex: 1;
    align-items: center;
  }

  .step-text {
    flex: 1;
  }

  .step-visual {
    flex: 2;
  }

  .step-img {
    max-height: 220px;
    object-fit: contain;
  }
}

/* =========================
   STICKY PLUS BUTTON
========================= */
.sticky-plus{
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #41337A;   /* same as home */
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 1000;
  transition: background-color .3s ease, transform .2s ease;
}

.sticky-plus:hover{
  background-color: #2f2861;
  transform: scale(1.05);
}


/* Mobile: slightly smaller */
@media (max-width: 480px) {
  .sticky-plus {
    width: 58px;
    height: 58px;
    font-size: 1.8rem;
    bottom: 15px;
    left: 15px;
  }
}

/* =========================
   FAQ + CONTACT FORM
========================= */

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
}

.faq-title {
  text-align: center;
  color: var(--secondary);
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid #ccc;
  padding: 1rem 0;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: var(--secondary);
}

.faq-toggle {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-question.active .faq-toggle {
  transform: rotate(45deg); /* Turns + into × */
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-5px);
  transition: all 0.3s ease;
  font-size: 1rem;
  color: var(--text);
  line-height: 1.5;

  /* NEW: Make answers left-aligned and give spacing */
  text-align: left;
  margin-top: 1rem; /* Space between question and answer */
  padding-left: 0.5rem; /* Small indent for readability */
}

.faq-answer.open {
  max-height: 500px; /* plenty for long answers */
  opacity: 1;
  transform: translateY(0);
}


.contact-page {
  max-width: 600px;
  margin: 5rem auto;
  padding: 2rem;
  text-align: center;
}

.contact-page h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: var(--tekhelet);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  background-color: #41337A;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #2f2861;
}

  .toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: #111;
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,.2);
    font: 500 14px/1.3 'Poppins', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 9999;
  }
  .toast.show { opacity: 1; }

/* =========================
   WAITLIST (cross-browser consistent)
========================= */

/* Shared sizing */
:root { --field-h: 52px; --field-gap-y: 1rem; }

/* Remove any inline spacing; control spacing in CSS */
.waitlist-form { margin-top: 0; }

/* Space the paragraph above the form */
.faq-answer p { margin: 0 0 1rem; }

.waitlist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.5rem;
  row-gap: var(--field-gap-y);
  align-items: start;              /* keep labels aligned */
}

.waitlist-field { display: block; min-width: 0; }

.waitlist-label {
  display: block;
  font-weight: 600;
  margin: 0 0 .4rem;
}

/* Controls look identical across browsers */
.waitlist-control {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: var(--field-h);
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font: inherit;                   /* Safari: inherit Poppins */
  line-height: normal;             /* avoid Safari quirks */
  background-color: #fff;
}

/* Normalize selects (+ custom arrow) */
.waitlist-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.2rem;           /* space for arrow */
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16"><path d="M4 6l4 4 4-4" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

/* Button wrapper: creates gap + handles mobile width */
.waitlist-actions { margin-top: 1rem; }

@media (max-width: 640px) {
  .waitlist-grid { grid-template-columns: 1fr; }
  .waitlist-actions .btn-primary { width: 100%; display: block; }
}


/* Center the select control itself */
.hero-quick-prefs .hq-row{
  display: flex;
  justify-content: center;
}

/* City selector: centered text + compact size */
#hero-city.hq-control{
  text-align: center;              /* most browsers */
  text-align-last: center;         /* Chrome/Edge */
  -moz-text-align-last: center;    /* Firefox */
  height: 48px;                    /* a touch smaller than the button’s visual height */
  padding: 0 18px;
  font-size: 1rem;
  width: 100%;
  max-width: 300px;                /* slightly wider than the button */
  box-sizing: border-box;
}

/* Keep it full-width on mobile */
@media (max-width: 768px){
  #hero-city.hq-control{
    max-width: 100%;
  }
}

/* Make the secondary button match shape (just to be sure) */
.btn-primary.secondary{
  background-color:#41337A;
  border-radius: 12px;
}
.btn-primary.secondary:hover{
  background-color:#2f2861;
}
