/* Everything is scoped under .hhrsvp-root so it can't bleed into (or be
   clobbered by) the active WordPress theme's global styles. Colors are
   !important on purpose: this design deliberately commits to one fixed
   look (dusk hero, ivory page, amber accent) regardless of the visitor's
   light/dark system preference or the host theme's own dark-mode styles --
   without !important, a theme rule as generic as "input { background:
   ...; color: ... }" under a dark-mode class/media query would have equal
   or higher specificity than the scoped selectors below and silently win. */

.hhrsvp-root{
  --hh-stone:        #24262B;
  --hh-dusk-top:     #2E3654;
  --hh-dusk-bottom:  #4B5A78;
  --hh-amber:        #D9A15B;
  --hh-amber-soft:   #E8C08C;
  --hh-ivory:        #F6F3EC;
  --hh-ink:          #1B1D21;
  --hh-grey:         #85868C;
  --hh-hairline:     rgba(27,29,33,0.12);
  --hh-radius:       2px;

  /* Forces native form-control chrome (checkbox ticks, default input
     borders, scrollbars) to render in its light variant even when the
     visitor's OS/browser is set to dark -- browsers pick native widget
     rendering from this property, not from ordinary CSS colors. */
  color-scheme:light;

  background:var(--hh-ivory) !important;
  color:var(--hh-ink) !important;
  font-family:'IBM Plex Sans', sans-serif;
  -webkit-font-smoothing:antialiased;
  max-width:100%;
  overflow-x:hidden;
}
.hhrsvp-root, .hhrsvp-root *{ box-sizing:border-box; }
.hhrsvp-root h1, .hhrsvp-root h2, .hhrsvp-root h3{
  font-family:'Fraunces', serif;
  font-weight:600;
  margin:0;
  color:inherit;
}
.hhrsvp-root .hhrsvp-eyebrow{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--hh-amber) !important;
}
.hhrsvp-root a{ color:inherit !important; }

@media (prefers-reduced-motion: reduce){
  .hhrsvp-root *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; }
}

/* ---------- HERO ---------- */
.hhrsvp-hero{
  position:relative;
  min-height:min(88vh, 760px);
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  background:linear-gradient(180deg, var(--hh-dusk-top) 0%, var(--hh-dusk-bottom) 62%, #5C6B84 100%) !important;
  overflow:hidden;
  padding:0 6vw;
  color-scheme:light;
}

.hhrsvp-stars{
  position:absolute; inset:0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 28% 9%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 44% 24%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 63% 6%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1.5px 1.5px at 78% 20%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 91% 12%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.3), transparent);
  opacity:0.9;
}

.hhrsvp-skyline{ position:absolute; left:0; right:0; bottom:0; height:38vh; display:block; }

.hhrsvp-lights-row{
  position:relative;
  display:flex;
  justify-content:space-between;
  padding:0 6vw;
  margin-bottom:-1px;
  z-index:2;
}
.hhrsvp-bulb{
  width:6px; height:6px;
  border-radius:50%;
  background:var(--hh-amber-soft) !important;
  box-shadow:0 0 6px 2px rgba(232,192,140,0.7);
  animation:hhrsvp-flicker 4.2s ease-in-out infinite;
}
.hhrsvp-bulb:nth-child(odd){ animation-delay:0.9s; }
.hhrsvp-bulb:nth-child(3n){ animation-delay:1.7s; }
@keyframes hhrsvp-flicker{ 0%,100%{ opacity:1; } 50%{ opacity:0.55; } }

.hhrsvp-hero-content{ position:relative; z-index:3; padding-bottom:9vh; color:var(--hh-ivory) !important; }
.hhrsvp-hero-content h1{
  font-size:clamp(2.6rem, 6.2vw, 5rem);
  line-height:1.02;
  letter-spacing:-0.01em;
  margin:0.4rem 0 1.3rem;
  color:var(--hh-ivory) !important;
}
.hhrsvp-hero-invite{
  max-width:640px;
  font-size:1.08rem;
  line-height:1.7;
  color:rgba(246,243,236,0.88) !important;
  margin:0 0 1.6rem;
}
.hhrsvp-hero-invite em{
  font-style:normal;
  color:var(--hh-amber-soft) !important;
}
.hhrsvp-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:2.2rem 3rem;
  margin-top:1.6rem;
  padding-top:1.6rem;
  border-top:1px solid rgba(246,243,236,0.22);
  max-width:760px;
}
.hhrsvp-hero-meta div{ min-width:140px; }
.hhrsvp-hero-meta .hhrsvp-label{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.68rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--hh-amber-soft) !important;
  margin-bottom:0.35rem;
}
.hhrsvp-hero-meta .hhrsvp-value{ font-size:1.02rem; color:var(--hh-ivory) !important; }
.hhrsvp-scroll-cue{
  position:absolute;
  right:6vw; bottom:3vh;
  z-index:3;
  color:rgba(246,243,236,0.6) !important;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.68rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  writing-mode:vertical-rl;
}

/* ---------- MAIN ---------- */
.hhrsvp-main{
  max-width:1180px;
  margin:0 auto;
  padding:8vh 6vw 10vh;
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:6vw;
  align-items:start;
}
@media (max-width:860px){
  .hhrsvp-main{ grid-template-columns:1fr; gap:4rem; padding:9vh 7vw 10vh; }
}

.hhrsvp-info h2{ font-size:1.9rem; margin-bottom:1.4rem; }
.hhrsvp-info p{ font-size:1.02rem; line-height:1.7; color:#3C3E44 !important; margin:0 0 1.4rem; }

.hhrsvp-detail-list{ margin-top:2.4rem; border-top:1px solid var(--hh-hairline); }
.hhrsvp-detail-row{
  display:flex;
  justify-content:space-between;
  gap:1.5rem;
  padding:1.05rem 0;
  border-bottom:1px solid var(--hh-hairline);
}
.hhrsvp-detail-row .hhrsvp-k{
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--hh-grey) !important;
  flex:0 0 130px;
  padding-top:0.15rem;
}
.hhrsvp-detail-row .hhrsvp-v{ font-size:0.98rem; color:var(--hh-ink) !important; text-align:right; }
.hhrsvp-detail-row .hhrsvp-v a{ text-decoration:underline; text-decoration-color:var(--hh-amber); text-underline-offset:3px; }

/* ---------- FORM ---------- */
.hhrsvp-form-card{
  background:var(--hh-stone) !important;
  color:var(--hh-ivory) !important;
  padding:3rem 2.6rem;
  border-radius:var(--hh-radius);
  position:relative;
  color-scheme:light;
}
.hhrsvp-form-card::before{
  content:"";
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background:linear-gradient(90deg, transparent, var(--hh-amber), transparent);
}
.hhrsvp-form-card h3{ font-size:1.5rem; color:var(--hh-ivory) !important; margin-bottom:0.5rem; }
.hhrsvp-form-card .hhrsvp-sub{ font-size:0.9rem; color:#B7B9C2 !important; margin-bottom:2rem; }
.hhrsvp-gform-btn{
  display:block;
  text-align:center;
  background:var(--hh-amber) !important;
  color:var(--hh-stone) !important;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.85rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:500;
  text-decoration:none;
  padding:1.1rem;
  border-radius:var(--hh-radius);
  transition:background 0.2s ease, transform 0.1s ease;
}
.hhrsvp-gform-btn:hover{ background:var(--hh-amber-soft) !important; }
.hhrsvp-gform-btn:active{ transform:scale(0.99); }
.hhrsvp-gform-btn:focus-visible{ outline:2px solid var(--hh-amber-soft); outline-offset:2px; }

.hhrsvp-hp-wrap{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

.hhrsvp-field{ margin-bottom:1.3rem; }
.hhrsvp-field label{
  display:block;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.68rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#B7B9C2 !important;
  margin-bottom:0.5rem;
}
.hhrsvp-field .hhrsvp-req{ color:var(--hh-amber-soft) !important; }
.hhrsvp-field input, .hhrsvp-field textarea{
  width:100%;
  background:rgba(246,243,236,0.06) !important;
  border:1px solid rgba(246,243,236,0.22) !important;
  color:var(--hh-ivory) !important;
  font-family:'IBM Plex Sans', sans-serif;
  font-size:0.98rem;
  padding:0.75rem 0.85rem;
  border-radius:var(--hh-radius);
  transition:border-color 0.2s ease, background 0.2s ease;
}
.hhrsvp-field input::placeholder, .hhrsvp-field textarea::placeholder{ color:#797B85 !important; }
.hhrsvp-field input:focus, .hhrsvp-field textarea:focus{
  outline:none;
  border-color:var(--hh-amber) !important;
  background:rgba(246,243,236,0.1) !important;
}
.hhrsvp-field textarea{ resize:vertical; min-height:64px; font-family:'IBM Plex Sans', sans-serif; }

.hhrsvp-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:1.1rem; }
@media (max-width:520px){ .hhrsvp-row-2{ grid-template-columns:1fr; } }

.hhrsvp-submit-btn{
  width:100%;
  margin-top:0.6rem;
  background:var(--hh-amber) !important;
  color:var(--hh-stone) !important;
  border:none;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.82rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-weight:500;
  padding:1rem;
  border-radius:var(--hh-radius);
  cursor:pointer;
  transition:background 0.2s ease, transform 0.1s ease;
}
.hhrsvp-submit-btn:hover{ background:var(--hh-amber-soft) !important; }
.hhrsvp-submit-btn:active{ transform:scale(0.99); }
.hhrsvp-submit-btn:disabled{ opacity:0.6; cursor:not-allowed; }
.hhrsvp-submit-btn:focus-visible, .hhrsvp-field input:focus-visible, .hhrsvp-field textarea:focus-visible{
  outline:2px solid var(--hh-amber-soft);
  outline-offset:2px;
}

.hhrsvp-error-msg{ font-size:0.82rem; color:#E8927A !important; margin-top:0.4rem; min-height:1em; }
.hhrsvp-form-status{ font-size:0.85rem; color:#B7B9C2 !important; margin-top:1rem; text-align:center; min-height:1.2em; }

/* ---------- CONFIRMATION ---------- */
.hhrsvp-confirm{ display:none; text-align:center; padding:1.5rem 0 0.5rem; }
.hhrsvp-confirm.hhrsvp-show{ display:block; }
.hhrsvp-confirm .hhrsvp-mark{
  width:52px; height:52px;
  margin:0 auto 1.4rem;
  border-radius:50%;
  border:1px solid var(--hh-amber) !important;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hhrsvp-confirm h3{ color:var(--hh-ivory) !important; font-size:1.4rem; margin-bottom:0.7rem; }
.hhrsvp-confirm p{ color:#C7C9D0 !important; font-size:0.95rem; line-height:1.6; margin:0 0 0.3rem; }
.hhrsvp-confirm .hhrsvp-again{
  margin-top:1.6rem;
  background:none !important;
  border:1px solid rgba(246,243,236,0.3) !important;
  color:#C7C9D0 !important;
  font-family:'IBM Plex Mono', monospace;
  font-size:0.72rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:0.7rem 1.1rem;
  border-radius:var(--hh-radius);
  cursor:pointer;
}
