/* =========================================================================
   Goa enquiry form
   -------------------------------------------------------------------------
   Implements the "Wedding Enquiry Form" design. Every value below comes from
   that design; the gold, ink and canvas read Elementor's Global Colors first
   so the form follows a rebrand, and fall back to the design's own values.

   Loaded only on pages that contain the [fg_enquiry_form] shortcode.
   ========================================================================= */

/* The tokens live on body, not on .fgq, because the "add custom event"
   dialog is appended to <body> — outside the form — so that it can be
   position: fixed without an ancestor transform trapping it. Scoped to .fgq
   they would resolve to nothing there and the dialog would paint see-through.
   body rather than :root because Elementor puts its Global Colors on the
   elementor-kit class on body, and html sits above that. */
body {
  --fgq-canvas:  var(--e-global-color-fgpanel, #efe4d8);
  --fgq-surface: #faf5ef;
  --fgq-ink:     var(--e-global-color-fgink, #3f2021);
  --fgq-label:   #6d5450;
  --fgq-muted:   #8f8a76;
  --fgq-faint:   #a69f88;
  --fgq-line:    #ddd0bf;
  --fgq-line-2:  #cdbda8;
  --fgq-dashed:  #c7b7a1;
  --fgq-gold:      var(--e-global-color-primary, #3f2021);
  --fgq-gold-deep: var(--e-global-color-accent, #2a1516);
  --fgq-gold-tint: color-mix(in srgb, var(--fgq-gold) 10%, transparent);
  --fgq-gold-ring: color-mix(in srgb, var(--fgq-gold) 15%, transparent);
  --fgq-error:   #a3402f;
  --fgq-disabled:#c9bcac;
  --fgq-on-gold: #f4ede7;

  --fgq-serif: 'Prata', Georgia, 'Times New Roman', serif;
  --fgq-sans:  'Comfortaa', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.fgq {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  background: var(--fgq-canvas);
  color: var(--fgq-ink);
  font-family: var(--fgq-sans);
  font-size: 16px;
  line-height: 1.45;
}
.fgq *, .fgq *::before, .fgq *::after { box-sizing: border-box; }

@keyframes fgq-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fgq-pop {
  from { transform: scale(0.7); }
  to   { transform: scale(1); }
}

/* ---------- header and progress ---------- */
.fgq-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 12px;
}
.fgq-title {
  margin: 0;
  font-family: var(--fgq-serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
  color: var(--fgq-ink);
  text-transform: none;
}
.fgq-steplabel {
  flex: none;
  font-size: 13px;
  color: var(--fgq-muted);
  letter-spacing: .06em;
}
.fgq-progress {
  height: 3px;
  margin: 0 24px 14px;
  background: var(--fgq-line);
  border-radius: 2px;
  overflow: hidden;
}
.fgq-progress span {
  display: block;
  height: 100%;
  background: var(--fgq-gold);
  border-radius: 2px;
  transition: width .35s ease;
}

/* ---------- panels ---------- */
.fgq-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* The bottom reserve keeps the last field clear of the sticky Continue
     button, which floats over the panel. Straight from the design. */
  padding: 4px 24px 124px;
  animation: fgq-fade-up .3s ease;
}
.fgq-panel[hidden] { display: none; }

/* On phones the site's own action bar sits at the bottom of the screen too,
   so the form's footer rides above it and the reserve grows to match. */
@media (max-width: 767px) {
  .fgq-panel { padding-bottom: 200px; }
}

.fgq-field { display: flex; flex-direction: column; gap: 8px; }
.fgq-fieldset { border: 0; margin: 0; padding: 0; gap: 10px; min-width: 0; }
.fgq-legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
}
.fgq-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fgq-label);
}
.fgq-hint { font-size: 13px; color: var(--fgq-faint); }
.fgq-error {
  font-size: 13px;
  color: var(--fgq-error);
  display: none;
}
.fgq-field.is-invalid .fgq-error,
.fgq-fieldset.is-invalid .fgq-error { display: block; }

/* ---------- text inputs ---------- */
.fgq-input {
  height: 52px;
  width: 100%;
  padding: 0 16px;
  border: 1.5px solid var(--fgq-line-2);
  border-radius: 10px;
  background: var(--fgq-surface);
  font-family: var(--fgq-sans);
  font-size: 16px;
  color: var(--fgq-ink);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fgq-input::placeholder { color: var(--fgq-faint); }
.fgq-input:focus {
  border-color: var(--fgq-gold);
  box-shadow: 0 0 0 3px var(--fgq-gold-ring);
}
.fgq-field.is-invalid .fgq-input,
.fgq-field.is-invalid .fgq-phone,
.fgq-field.is-invalid .fgq-datebtn { border-color: var(--fgq-error); }

.fgq-phone {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1.5px solid var(--fgq-line-2);
  border-radius: 10px;
  background: var(--fgq-surface);
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fgq-phone:focus-within {
  border-color: var(--fgq-gold);
  box-shadow: 0 0 0 3px var(--fgq-gold-ring);
}
.fgq-cc {
  padding: 0 12px 0 16px;
  font-size: 16px;
  color: var(--fgq-muted);
  border-right: 1px solid var(--fgq-line);
  line-height: 52px;
}
.fgq-phone .fgq-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* ---------- date ---------- */
.fgq-datefield { position: relative; }
.fgq-datebtn {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border: 1.5px solid var(--fgq-line-2);
  border-radius: 10px;
  background: var(--fgq-surface);
  font-family: var(--fgq-sans);
  font-size: 16px;
  color: var(--fgq-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fgq-datebtn:focus-visible {
  outline: none;
  border-color: var(--fgq-gold);
  box-shadow: 0 0 0 3px var(--fgq-gold-ring);
}
.fgq-datebtn svg { flex: none; color: var(--fgq-gold); }
.fgq-datebtn .is-empty { color: var(--fgq-faint); }

/* Without JavaScript the native date field is the control. */
.fgq-datenative {
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--fgq-line-2);
  border-radius: 10px;
  background: var(--fgq-surface);
  font-family: var(--fgq-sans);
  font-size: 16px;
  color: var(--fgq-ink);
  color-scheme: light;
}
.fgq-datebtn { display: none; }
.fgq.is-enhanced .fgq-datebtn { display: flex; }
.fgq.is-enhanced .fgq-datenative {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

/* ---------- calendar ---------- */
.fgq-cal {
  border: 1.5px solid var(--fgq-line);
  border-radius: 14px;
  background: var(--fgq-surface);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(42, 38, 32, .1);
  animation: fgq-fade-up .2s ease;
}
.fgq-cal[hidden] { display: none; }
.fgq-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.fgq-cal-nav {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--fgq-line-2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fgq-ink);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.fgq-cal-nav:hover:not([disabled]) {
  border-color: var(--fgq-gold);
  color: var(--fgq-gold-deep);
  background: var(--fgq-gold-tint);
}
.fgq-cal-nav:focus-visible {
  outline: 2px solid var(--fgq-gold);
  outline-offset: 2px;
}
/* At the current month there is nowhere earlier to go. Say so clearly
   rather than leaving a button that looks live but does nothing. */
.fgq-cal-nav[disabled] {
  opacity: .35;
  cursor: not-allowed;
  background: transparent;
}
.fgq-cal-title {
  flex: 1 1 auto;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--fgq-ink);
}
.fgq-cal-week,
.fgq-cal-days {
  display: grid;
  /* minmax(0, 1fr), not 1fr: the day buttons' own minimum width would
     otherwise push the seven columns wider than the card and clip Saturday. */
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}
.fgq-cal-week span {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--fgq-faint);
}
.fgq-cal-day {
  height: 42px;
  min-width: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--fgq-ink);
  font-family: var(--fgq-sans);
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .12s ease, color .12s ease;
}
.fgq-cal-day:hover:not([disabled]):not(.is-selected) {
  background: var(--fgq-gold-tint);
}
.fgq-cal-day:focus-visible {
  outline: 2px solid var(--fgq-gold);
  outline-offset: -2px;
}
.fgq-cal-day[disabled] { color: var(--fgq-disabled); cursor: default; }
.fgq-cal-day.is-blank { visibility: hidden; }
.fgq-cal-day.is-today { background: color-mix(in srgb, var(--fgq-gold) 12%, transparent); font-weight: 600; }
.fgq-cal-day.is-selected {
  background: var(--fgq-gold);
  color: var(--fgq-on-gold);
  font-weight: 600;
}

/* ---------- choice grids ---------- */
.fgq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Event cards */
.fgq-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-height: 64px;
  padding: 12px 38px 12px 14px;
  border: 1.5px solid var(--fgq-line);
  border-radius: 12px;
  background: var(--fgq-surface);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.fgq-card:hover { border-color: var(--fgq-gold); }
.fgq-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.fgq-card:has(input:checked) {
  border-color: var(--fgq-gold);
  background: var(--fgq-gold-tint);
}
.fgq-card:has(input:focus-visible) {
  outline: 2px solid var(--fgq-gold);
  outline-offset: 2px;
}
.fgq-card-icon {
  color: var(--fgq-faint);
  margin-bottom: 6px;
  transition: color .15s ease;
}
.fgq-card:has(input:checked) .fgq-card-icon { color: var(--fgq-gold-deep); }
.fgq-card-name { font-size: 15.5px; font-weight: 600; color: var(--fgq-ink); }
.fgq-card-sub  { font-size: 13px; color: var(--fgq-muted); }

.fgq-tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--fgq-line-2);
  color: var(--fgq-on-gold);
  transform: scale(.9);
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.fgq-tick svg { opacity: 0; transition: opacity .15s ease; }
.fgq-card:has(input:checked) .fgq-tick {
  background: var(--fgq-gold);
  border-color: var(--fgq-gold);
  transform: scale(1);
  animation: fgq-pop .18s ease;
}
.fgq-card:has(input:checked) .fgq-tick svg { opacity: 1; }

/* Add custom */
.fgq-add {
  min-height: 64px;
  padding: 12px 14px;
  border: 1.5px dashed var(--fgq-dashed);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: var(--fgq-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--fgq-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fgq-add:hover { border-color: var(--fgq-gold); color: var(--fgq-gold-deep); }

/* Budget pills */
.fgq-pill {
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--fgq-line);
  border-radius: 999px;
  background: var(--fgq-surface);
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: var(--fgq-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.fgq-pill:hover { border-color: var(--fgq-gold); }
.fgq-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.fgq-pill:has(input:checked) {
  border-color: var(--fgq-gold);
  background: var(--fgq-gold-tint);
  color: var(--fgq-gold-deep);
}
.fgq-pill:has(input:focus-visible) { outline: 2px solid var(--fgq-gold); outline-offset: 2px; }

/* ---------- step two summary ---------- */
.fgq-summary {
  background: var(--fgq-surface);
  border: 1px solid var(--fgq-line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.fgq-summary-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fgq-summary-top { font-size: 13px; color: var(--fgq-muted); }
.fgq-summary-main {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fgq-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fgq-edit {
  flex: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--fgq-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fgq-gold-deep);
  padding: 8px;
}

/* ---------- footer ---------- */
.fgq-foot {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 10px 24px 16px;
  background: linear-gradient(to top, var(--fgq-canvas) 70%, transparent);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fgq-foot[hidden] { display: none; }
/* Clear the site's sticky WhatsApp / Enquire bar, which is 56px tall. */
@media (max-width: 767px) {
  .fgq-foot { bottom: 56px; }
}
.fgq-actions { display: flex; gap: 10px; }
.fgq-btn-back {
  height: 54px;
  padding: 0 20px;
  border: 1.5px solid var(--fgq-line-2);
  border-radius: 12px;
  background: var(--fgq-surface);
  cursor: pointer;
  font-family: var(--fgq-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--fgq-label);
}
.fgq-btn-back[hidden] { display: none; }
.fgq-cta {
  flex: 1;
  height: 54px;
  border: none;
  border-radius: 12px;
  background: var(--fgq-gold);
  color: var(--fgq-on-gold);
  cursor: pointer;
  font-family: var(--fgq-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: filter .15s ease;
}
.fgq-cta:hover  { filter: brightness(1.08); }
.fgq-cta:active { filter: brightness(.95); }
.fgq-cta[disabled] { opacity: .65; cursor: default; }
.fgq-fine {
  margin: 0;
  font-size: 12.5px;
  color: var(--fgq-faint);
  text-align: center;
}
.fgq-formerror {
  margin: 0;
  font-size: 13px;
  color: var(--fgq-error);
  text-align: center;
}
.fgq-formerror[hidden] { display: none; }

/* ---------- sent ---------- */
.fgq-done {
  padding: 60px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  animation: fgq-fade-up .35s ease;
}
.fgq-done[hidden] { display: none; }
.fgq-tickbig {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--fgq-gold);
  color: var(--fgq-on-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fgq-donetitle {
  margin: 0;
  font-family: var(--fgq-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--fgq-ink);
  text-transform: none;
  letter-spacing: 0;
}
.fgq-donetext {
  margin: 0;
  font-size: 15.5px;
  color: var(--fgq-label);
  line-height: 1.55;
  max-width: 300px;
}
.fgq-restart {
  margin-top: 8px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--fgq-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--fgq-gold-deep);
  padding: 10px;
}

/* ---------- add-custom dialog ---------- */
.fgq-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 38, 32, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fgq-fade-up .2s ease;
}
.fgq-modal-box {
  width: 100%;
  max-width: 360px;
  background: var(--fgq-surface);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 24px 60px rgba(42, 38, 32, .35);
  font-family: var(--fgq-sans);
}
.fgq-modal-title {
  margin: 0;
  font-family: var(--fgq-serif);
  font-size: 23px;
  font-weight: 400;
  color: var(--fgq-ink);
  text-transform: none;
  letter-spacing: 0;
}
.fgq-modal-box input {
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--fgq-gold);
  border-radius: 10px;
  background: #f6efe6;
  font-family: var(--fgq-sans);
  font-size: 16px;
  color: var(--fgq-ink);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fgq-gold) 12%, transparent);
}
.fgq-modal-actions { display: flex; gap: 10px; }
.fgq-modal-actions button {
  flex: 1;
  height: 50px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--fgq-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fgq-modal-cancel {
  border: 1.5px solid var(--fgq-line-2);
  background: var(--fgq-surface);
  color: var(--fgq-label);
}
.fgq-modal-add {
  border: none;
  background: var(--fgq-gold);
  color: var(--fgq-on-gold);
}

/* Honeypot — never shown to a person. */
.fgq-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .fgq *, .fgq *::before, .fgq *::after {
    animation: none !important;
    transition: none !important;
  }
}
