:root {
  --navy: #364858;
  --blush-bg: #fdded1;
  --blush: #fcccb7;
  --cream: #faefea;
  --line-on-blush: #364858;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  color: var(--navy);
  background: var(--navy);
  line-height: 1.6;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

/* visually hidden but available to screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Wordmark ===== */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--cream);
  line-height: 1;
}
.wordmark img { display: block; width: 190px; height: auto; }
.thankyou .wordmark img { width: 230px; }

/* ===== Header ===== */
.site-header {
  background: var(--navy);
  text-align: center;
  padding: 26px 20px 22px;
}
.site-header p {
  font-family: "Quicksand", sans-serif;
  font-size: 2rem;
  color: var(--cream);
  margin: 10px 0 0;
}

/* ===== Hero ===== */
.hero { display: block; }
.hero img { display: block; width: 100%; height: auto; }

/* ===== Intro ===== */
.intro {
  background: var(--navy);
  color: var(--cream);
  padding-top: 54px;
}
.intro__heading {
  font-family: "Quicksand", sans-serif;
  font-weight: 300;
  font-size: 3rem;
  margin: 0 0 17px;
  letter-spacing: .01em;
}
.intro__body {
  font-size: 1.1rem;
  font-weight: 500;
  max-width: 760px;
  color: rgba(243, 239, 233, .85);
  line-height: 2.2;
}
.pink-text {
  color: var(--blush);
}
.intro__coming {
  font-size: 1.8rem;
  color: var(--blush);
  margin: 50px 0;
  letter-spacing: .02em;
}
.intro__registry {
  font-size: .8rem;
  letter-spacing: .1em;
  color: rgba(243, 239, 233, .8);
}

/* ===== Form section ===== */
.form-section {
  background: var(--blush-bg);
  color: var(--navy);
  padding: 56px 0 64px;
}
.form-section__heading {
  font-family: "Quicksand", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  max-width: 850px;
  margin: 0 0 46px;
  line-height: 1.45;
  letter-spacing: 0.05rem;
}

.reg-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  row-gap: 40px;
}
.field--full { grid-column: 1 / -1; }

/* honeypot */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* fields */
.field { display: flex; flex-direction: column; }
.field label,
.field__label {
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
}
.req { color: var(--navy); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-on-blush);
  padding: 6px 2px 9px;
  font-family: "Montserrat", sans-serif;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--navy);
  border-radius: 0;
  outline: none;
}
.field input:focus,
.field select:focus { border-bottom-color: var(--navy); }

/* in-field labels: placeholder text styled like the original labels,
   replaced as soon as the user types / selects */
.field input::placeholder {
  color: var(--navy);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .1em;
}
.field select.is-empty { color: var(--navy); font-weight: 500; letter-spacing: .1em; }
.field select option { color: var(--navy); font-size: .9rem; font-weight: 500; letter-spacing: normal; }

.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23364858' stroke-width='1.3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 2px center;
  cursor: pointer;
}

/* inline fields (label + options on one row) */
.field--inline {
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 22px;
  border-bottom: 1px solid var(--line-on-blush);
  padding-bottom: 9px;
}
.field--inline .field__label { margin-bottom: 0; }

.opts { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.opts--wide { flex-grow: 1; justify-content: space-around; gap: 18px 30px; }

/* custom square check/radio */
.opt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 0;
}
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt .box {
  width: 12px; height: 12px;
  outline: 0.5px solid var(--navy);
  background-color: #f3efe9;
  display: inline-block;
  position: relative;
  flex: none;
}
.opt input:checked + .box { border: 1px solid #f3efe9; background: var(--navy); }
.opt input:focus-visible + .box { outline: 2px solid var(--navy); outline-offset: 2px; }

/* error */
.form-error {
  color: #9a3b2e;
  font-size: .85rem;
  text-align: center;
  margin: 26px 0 0;
}

/* submit */
.submit-btn {
  display: block;
  width: 100%;
  margin: 70px auto 0;
  background: transparent;
  border: 1px solid var(--navy);
  color: var(--navy);
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  letter-spacing: .2em;
  padding: 20px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.submit-btn:hover { background: var(--navy); color: var(--blush-bg); }
.submit-btn:disabled { opacity: .5; cursor: default; }

/* ===== Footer ===== */
.site-footer {
  background: var(--navy);
  color: rgba(243, 239, 233, .8);
  padding: 20px 28px 36px;
  text-align: center;
}
.footer__main {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .78rem;
  letter-spacing: .08em;
  position: relative;
}
.footer__address { font-weight: 500; letter-spacing: 0; }
.footer__privacy { font-size: .68rem; font-weight: 500; letter-spacing: 0; text-decoration: none; }
.footer__privacy:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__social { align-self: flex-end; display: inline-flex; gap: 14px; }
.footer__social a { color: var(--blush); display: inline-flex; }

.footer__legal {
  display: flex;
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 20px;
  text-align: left;
}
.footer__eho {
  display: block;
  width: 40px;
  height: 40px;
  margin: 4px 9px 0 0;
  /* asset is black (100K); render it white for the navy footer */
  filter: brightness(0) invert(1);
  opacity: .45;
}
.footer__legal p {
  text-align: justify;
  font-size: .58rem;
  line-height: 1.55;
  color: rgba(243, 239, 233, .5);
  margin: 0;
}

/* ===== Thank-you overlay ===== */
.thankyou {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 1000;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
}
.thankyou[hidden] { display: none; }
.thankyou .wordmark {
  position: absolute;
  top: 40px;
  left: 48px;
  align-items: flex-start;
}
.thankyou__close {
  position: absolute;
  top: 34px;
  right: 44px;
  background: none;
  border: none;
  padding: 0;
  line-height: 0;
  color: rgba(243, 239, 233, .65);
  cursor: pointer;
  transition: color .2s ease;
}
.thankyou__close:hover { color: rgba(243, 239, 233, .9); }
.thankyou__close svg { display: block; }
.thankyou__box {
  position: relative;
  border: 1.2px solid var(--blush);
  max-width: 860px;
  width: 100%;
  padding: 90px 140px;
  text-align: center;
}
/* doubled vertical borders on the left & right (top/bottom stay single) */
.thankyou__box::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  right: 12px;
  border-left: 1.2px solid var(--blush);
  border-right: 1.2px solid var(--blush);
  pointer-events: none;
}
.thankyou__box p {
  color: var(--blush);
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

/* ===== Responsive ===== */
@media (max-width: 642px) {
  .opts--wide { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .reg-form__grid { grid-template-columns: 1fr; column-gap: 0; row-gap: 26px; }
  .field--full { grid-column: auto; }
  .intro__heading { font-size: 2rem; }
  .form-section__heading { font-size: 1.25rem; }
  .footer__main { flex-direction: column; gap: 10px; }
  .thankyou { padding: 24px; }
  .thankyou .wordmark { top: 24px; left: 24px; }
  .thankyou .wordmark img { width: 180px; }
  .thankyou__close { top: 20px; right: 22px; }
  .thankyou__box { padding: 44px 24px; }
  .thankyou__box p { font-size: 1.25rem; }
}
