/* forms-dialog.css — the verification dialog that assets/forms.js opens on submit.
   Copy to the site's CSS folder and link it wherever forms.js is loaded.

   Design-system agnostic: every colour, space and font below is a var() with a
   literal fallback, so it inherits the site's tokens where they exist and still
   renders correctly where they don't. Restyle the panel freely — the only rules
   that are load-bearing are marked LOAD-BEARING. */

.stb-cap {
  position: fixed;
  inset: 0;
  /* LOAD-BEARING: must stay well under 2000000000, which is where Google's own
     image-challenge overlay sits — otherwise a challenge opens BEHIND the panel
     and the guest can never solve it */
  z-index: 600;
  display: grid;
  place-items: center;
  padding: var(--sp-5, 1.25rem);
  background: var(--stb-cap-scrim, rgba(12, 20, 25, .82));
  opacity: 0;
  transition: opacity var(--t-base, 320ms) var(--e-soft, cubic-bezier(.4, 0, .2, 1));
}
/* LOAD-BEARING: forms.js toggles the hidden attribute, and a stylesheet that
   sets display on .stb-cap without this rule will defeat it */
.stb-cap[hidden] { display: none; }
.stb-cap.is-open { opacity: 1; }

.stb-cap__backdrop { position: absolute; inset: 0; cursor: pointer; }

.stb-cap__panel {
  position: relative;
  /* 304px of reCAPTCHA + padding; min() keeps it inside a 320px viewport */
  width: min(392px, 100%);
  padding: var(--sp-7, 2rem) var(--sp-6, 1.5rem) var(--sp-6, 1.5rem);
  background: var(--c-white, #fff);
  color: var(--c-text, #444);
  border-top: 3px solid var(--c-secondary, #aa998a);
  box-shadow: 0 24px 60px rgba(12, 20, 25, .35);
  text-align: left;
  transform: translateY(8px);
  transition: transform var(--t-base, 320ms) var(--e-soft, cubic-bezier(.4, 0, .2, 1));
}
.stb-cap.is-open .stb-cap__panel { transform: none; }
.stb-cap.is-sending .stb-cap__panel { opacity: .72; pointer-events: none; }

.stb-cap__title {
  margin: 0 0 var(--sp-2, .5rem);
  font-family: var(--f-display, inherit);
  font-size: var(--fs-lg, 1.125rem);
  line-height: 1.25;
  color: var(--c-heading, #1c2c34);
}
.stb-cap__body {
  margin: 0 0 var(--sp-5, 1.25rem);
  font-size: var(--fs-sm, .9375rem);
}
.stb-cap__status {
  margin: var(--sp-4, 1rem) 0 0;
  font-size: var(--fs-xs, .75rem);
}
.stb-cap__status[hidden] { display: none; }

.stb-cap__close {
  position: absolute;
  top: var(--sp-3, .75rem);
  right: var(--sp-3, .75rem);
  display: grid;
  place-items: center;
  width: 40px;                      /* 40px so it is a real touch target */
  height: 40px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.stb-cap__close svg { width: 15px; height: 15px; fill: currentColor; }
.stb-cap__close:hover { color: var(--c-secondary, #aa998a); }

/* the widget is a fixed 304px iframe Google will not resize */
.stb-cap__host { min-height: 78px; }
.stb-cap__host[hidden] { display: none; }
.stb-cap__host > div { max-width: 100%; }

body.stb-cap-locked { overflow: hidden; }

/* 304px does not fit a 320px viewport once the panel's padding is taken, so the
   host is scaled down — with an explicit height, because a transform does not
   shrink the space the box still reserves */
@media (max-width: 399px) {
  .stb-cap { padding: var(--sp-4, 1rem); }
  .stb-cap__panel { padding: var(--sp-6, 1.5rem) var(--sp-4, 1rem) var(--sp-5, 1.25rem); }
  .stb-cap__host { transform: scale(.88); transform-origin: left top; min-height: 0; height: 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .stb-cap, .stb-cap__panel { transition: none; }
  .stb-cap__panel { transform: none; }
}

/* The status line inside each form. A light panel like this also appears inside a
   dark footer, so it states its own colours — inherit them and the footer's
   light-on-dark text lands on a light panel at about 1.2:1. */
.form-status {
  margin-top: var(--sp-4, 1rem);
  padding: var(--sp-4, 1rem);
  border-left: 3px solid var(--c-success, #2f6b4f);
  background: var(--c-bg-alt, #faf8f5);
  color: var(--c-text, #5c5c5c);
  font-size: var(--fs-sm, .9375rem);
}
.form-status[hidden] { display: none; }
.form-status[data-state="error"] { border-left-color: var(--c-error, #b3261e); }
.form-status__title {
  display: block;
  margin-bottom: var(--sp-2, .5rem);
  color: var(--c-heading, #1c2c34);
}
.form-status__body { display: block; margin-bottom: var(--sp-4, 1rem); }
.form-status__handoff { display: flex; flex-wrap: wrap; gap: var(--sp-3, .75rem); }
.form-status__handoff .btn { flex: 1 1 auto; min-width: min(100%, 15rem); }

/* :not(.btn) matters — the handoff buttons are anchors too, and a bare
   `.form-status a` rule outranks .btn and repaints them dark-on-dark */
.form-status a:not(.btn) { color: var(--c-heading, #1c2c34); text-decoration: underline; }
/* a footer's own `a` rule is usually declared later in the sheet and would win
   on source order, tinting a label to rgba(255,255,255,.68) on a light panel */
.footer .form-status a:not(.btn) { color: var(--c-heading, #1c2c34); text-decoration: underline; }
.footer .form-status .btn { color: var(--c-white, #fff); text-decoration: none; }

/* ---- Fateh Collection theme: the same look as the site's price popup (.pi-panel) ---- */
.stb-cap { background: rgba(20, 20, 18, .62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.stb-cap__panel {
  width: min(400px, 100%);
  padding: 40px 36px 34px;
  background: #1c1c1a;
  color: rgba(255, 255, 255, .72);
  border-top: 0;
  border-radius: 12px;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5);
  text-align: center;
  transform: translateY(24px) scale(.97);
  transition: transform .5s cubic-bezier(.25, .1, .25, 1);
}
.stb-cap.is-open .stb-cap__panel { transform: none; }
.stb-cap__title {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: .01em;
  line-height: 1.2;
  color: #fff;
}
.stb-cap__body {
  margin: 0 0 24px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
}
.stb-cap__hosts { display: flex; justify-content: center; }
.stb-cap__status { font-family: "Inter", system-ui, sans-serif; font-size: 12px; color: #c9a96e; }
.stb-cap__close {
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  color: rgba(255, 255, 255, .6);
  transition: all .3s cubic-bezier(.25, .1, .25, 1);
}
.stb-cap__close svg { width: 12px; height: 12px; }
.stb-cap__close:hover { color: #fff; border-color: #c9a96e; background: rgba(201, 169, 110, .12); }
.stb-cap__close:focus-visible { outline: 2px solid #c9a96e; outline-offset: 2px; }
@media (max-width: 399px) {
  .stb-cap__panel { padding: 36px 20px 26px; }
  .stb-cap__host { transform-origin: center top; }
}
@media (prefers-reduced-motion: reduce) { .stb-cap__panel { transform: none; transition: none; } }