/* ─────────────────────────────────────────────────────────────
   Margarita Novoa — shared styles
   Single source of truth for the look shared across every page
   (homepage, landing page, spray tanning page). Page-specific
   sections (heros, carousels, service cards, nav, footer) stay
   inline on each page.
   ───────────────────────────────────────────────────────────── */

:root {
  --blush:       #F2C4CE;
  --blush-light: #FAF0F2;
  --blush-dark:  #D4889A;
  --rose:        #C07082;
  --rose-deep:   #a85a6a;
  --gray-light:  #F7F5F6;
  --gray-medium: #E2DADD;
  --gray-dark:   #9E9598;
  --white:       #FFFFFF;
  --charcoal:    #2D2427;
  --text-medium: #6B5F63;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  overflow-x: hidden;
}

/* ─── BUTTONS ─── */
.btn-primary {
  background: var(--rose);
  color: var(--white);
  padding: 16px 44px;
  border-radius: 40px;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: 0 6px 24px rgba(192,112,130,0.35);
  display: inline-block;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: var(--blush-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(192,112,130,0.4);
}

/* ─── SECTION HELPERS ─── */
.section-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
}
.section-title em {
  font-style: italic;
  color: var(--rose);
}
.section-divider {
  width: 56px; height: 2px;
  background: linear-gradient(to right, var(--rose), var(--blush));
  margin: 24px auto;
}

/* ─── FAQ ─── */
.faq {
  padding: 110px 40px;
  background: var(--gray-light);
}
.faq-inner {
  max-width: 780px;
  margin: 0 auto;
}
.faq-header {
  text-align: center;
  margin-bottom: 56px;
}
.faq-item {
  border-bottom: 1px solid var(--gray-medium);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--charcoal);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: color 0.3s;
  letter-spacing: 0.2px;
}
.faq-question:hover { color: var(--rose); }
.faq-question i {
  color: var(--rose);
  font-size: 0.75rem;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-question i { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p {
  font-size: 0.91rem;
  color: var(--text-medium);
  line-height: 1.9;
  padding-bottom: 22px;
}

/* ─── ENQUIRY FORM ─── */
.form-steps { margin-bottom: 28px; }
.step-track {
  height: 4px;
  background: var(--gray-medium);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.step-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 4px;
  width: 50%;
  transition: width 0.4s ease;
}
.step-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-medium);
  font-weight: 600;
}

.form-group { margin-bottom: 18px; }
.form-group label,
.group-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-medium);
  font-weight: 700;
  margin-bottom: 7px;
}
.optional {
  font-size: 0.75em;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gray-dark);
  font-weight: 400;
}

/* Tooltips */
.tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  margin-left: 6px;
  border: none;
  border-radius: 50%;
  background: var(--blush-light);
  color: var(--rose);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  padding: 0;
  position: relative;
  vertical-align: middle;
  font-family: 'Raleway', sans-serif;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}
.tip:hover { background: var(--rose); color: var(--white); }
.tip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--charcoal);
  color: var(--white);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-transform: none;
  line-height: 1.55;
  width: 240px;
  max-width: 80vw;
  display: none;
  pointer-events: none;
  z-index: 50;
  text-align: left;
  box-shadow: 0 8px 28px rgba(45,36,39,0.25);
}
.tip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--charcoal);
  display: none;
  z-index: 51;
  pointer-events: none;
}
/* Hidden bubbles use display:none, not opacity, so they take no space:
   an invisible 240px bubble near the right edge widened the page on phones. */
.tip:hover::after,
.tip:hover::before,
.tip.show::after,
.tip.show::before { display: block; animation: tip-fade 0.2s ease; }
@keyframes tip-fade { from { opacity: 0; } to { opacity: 1; } }

/* Phones: pin the bubble to its label's width so it cannot run off screen. */
@media (max-width: 600px) {
  .form-group label,
  .group-label { position: relative; }
  .tip { position: static; }
  .tip::after { left: 0; right: 0; width: auto; max-width: none; transform: none; }
  .tip:hover::before,
  .tip.show::before { display: none; }
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 13px 17px;
  border: 2px solid var(--gray-medium);
  border-radius: 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.93rem;
  color: var(--charcoal);
  background: var(--white);
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(192,112,130,0.12);
}
.form-group input.invalid { border-color: #e07070; }
.form-group textarea { height: 110px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Let fields shrink to their column (a native time input would not). */
.form-row > * { min-width: 0; }
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; row-gap: 0; } /* fields keep their own 18px bottom margin */
}

/* Pill selectors */
.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
.pill { position: relative; }
.pill input[type="radio"],
.pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.pill span {
  display: inline-block;
  padding: 9px 18px;
  border: 2px solid var(--gray-medium);
  border-radius: 50px;
  font-size: 0.82rem;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
  background: var(--white);
  white-space: nowrap;
}
.pill input:checked + span {
  border-color: var(--rose);
  background: var(--blush-light);
  color: var(--rose);
}
.pill span:hover { border-color: var(--blush-dark); color: var(--blush-dark); }

.btn-submit {
  flex: 1;
  background: var(--rose);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-submit:hover {
  background: var(--blush-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(192,112,130,0.3);
}
.btn-back {
  background: transparent;
  border: 2px solid var(--gray-medium);
  color: var(--text-medium);
  padding: 16px 20px;
  border-radius: 12px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-back:hover { border-color: var(--rose); color: var(--rose); }
.form-btns {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.form-btns-single { margin-top: 6px; }
