/* The Vow Experience - Media Release Waiver
   Brand palette and base styles. Mobile-first. */

:root {
  --cream: #F7F5F2;
  --emerald: #0F3D3E;
  --gold: #B4963C;
  --charcoal: #2B2B2B;
  --error: #B23B3B;
  --field-border: #D8D2C7;
  --field-border-focus: var(--emerald);
  --radius: 10px;
  --maxw: 640px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Display / headings */
.display {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--emerald);
  line-height: 1.15;
  margin: 0;
}

/* Eyebrow with gold dot */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
}

.eyebrow::before {
  content: "\2022"; /* gold dot */
  color: var(--gold);
  font-size: 16px;
  line-height: 1;
}

/* Header */
.site-header {
  text-align: center;
  padding: 6px 0 16px;
  border-bottom: 1px solid var(--field-border);
  margin-bottom: 24px;
}

.logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* Page title */
.page-title {
  font-size: 30px;
  margin-bottom: 8px;
}

.lede {
  margin: 0 0 28px;
  color: #4a4a4a;
}

/* Legal text scrollable container */
.legal-eyebrow {
  margin-bottom: 10px;
}

/* Agreement box plus its pinned copy button */
.legal-wrap {
  position: relative;
  margin-bottom: 32px;
}

.legal-box {
  max-height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: #FFFFFF;
  /* Wide right padding gives the text its own lane so it never flows
     under the copy button (pinned top-right, ~44px from the edge) at
     any scroll position. */
  padding: 18px 48px 6px 18px;
  box-shadow: inset 0 -16px 16px -16px rgba(43, 43, 43, 0.12);
}

/* Copy button: icon-only chip pinned in the top-right of the box.
   It sits outside the scrolling element so it stays put while the
   text scrolls; the opaque background masks text passing beneath. */
.copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: #8a8478;
  background: #FFFFFF;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(43, 43, 43, 0.10);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.copy-btn:hover,
.copy-btn:focus {
  color: var(--emerald);
  border-color: #c9c2b5;
  background: #F7F5F2;
  outline: none;
}

.copy-btn:active {
  background: #EFEBE4;
}

.copy-icon {
  flex: 0 0 auto;
}

/* Hover / keyboard-focus tooltip */
.copy-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  transform: translateY(-50%);
  white-space: nowrap;
  background: var(--charcoal);
  color: var(--cream);
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 4px 9px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.copy-btn:hover::after,
.copy-btn:focus-visible::after {
  opacity: 1;
}

/* Suppress the tooltip while the Copied toast is showing */
.copy-btn.copied::after {
  opacity: 0;
}

/* Copied toast, pinned just below the button */
.copy-toast {
  position: absolute;
  top: 50px;
  right: 8px;
  z-index: 2;
  background: var(--emerald);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.copy-toast.show {
  opacity: 1;
}

.legal-box h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--emerald);
  font-size: 19px;
  font-weight: 600;
  margin: 18px 0 6px;
}

.legal-box h3:first-child {
  margin-top: 2px;
}

.legal-box p {
  margin: 0 0 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--charcoal);
}

.legal-intro {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--charcoal);
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--field-border);
}

.legal-box ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.legal-box li {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.legal-box li::marker {
  color: var(--gold);
}

/* Form sections */
.section {
  margin-bottom: 32px;
}

.section-title {
  font-size: 22px;
  margin-bottom: 4px;
}

.section-hint {
  font-size: 14px;
  color: #6a6a6a;
  margin: 0 0 16px;
}

/* Required-field asterisk */
.req {
  color: var(--error);
  margin-left: 3px;
  font-size: 0.8em;
  font-weight: 400;
  vertical-align: baseline;
}

.form-required-note {
  font-size: 14px;
  color: #6a6a6a;
  margin: 0 0 22px;
}

/* Radio group (identification) */
.choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: #FFFFFF;
  margin-bottom: 10px;
  cursor: pointer;
  min-height: 56px;
}

.choice:focus-within {
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px rgba(15, 61, 62, 0.12);
}

.choice input[type="radio"],
.choice input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--emerald);
  flex: 0 0 auto;
}

.choice span {
  font-size: 16px;
  line-height: 1.45;
}

/* Text fields */
.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-family: Georgia, serif;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--emerald);
  margin-bottom: 6px;
  font-weight: bold;
}

.field input {
  width: 100%;
  font-family: Georgia, serif;
  font-size: 17px;
  color: var(--charcoal);
  padding: 14px 14px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: #FFFFFF;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus {
  outline: none;
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px rgba(15, 61, 62, 0.12);
}

.field input.invalid,
.choice-group.invalid .choice {
  border-color: var(--error);
}

/* Inline validation message */
.error-msg {
  display: none;
  color: var(--error);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.4;
}

.error-msg.show {
  display: block;
}

/* Signature pad */
.sig-wrap {
  position: relative;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: #FFFFFF;
  overflow: hidden;
}

.sig-wrap.invalid {
  border-color: var(--error);
}

#signature-pad {
  display: block;
  width: 100%;
  height: 200px;
  touch-action: none; /* critical for iOS Safari drawing */
}

.sig-hint {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  text-align: center;
  pointer-events: none;
  color: #9a958c;
  font-style: italic;
  font-size: 16px;
  transition: opacity 0.15s ease;
}

.sig-hint.hidden {
  opacity: 0;
}

.sig-clear {
  display: inline-block;
  margin-top: 10px;
  font-family: Georgia, serif;
  font-size: 15px;
  color: var(--emerald);
  background: transparent;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  min-height: 44px;
}

.sig-clear:active {
  background: #F0EDE7;
}

/* Submit button */
.btn-submit {
  display: block;
  width: 100%;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.3px;
  color: var(--cream);
  background: var(--emerald);
  border: none;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 8px;
  cursor: pointer;
  min-height: 60px;
  box-shadow: 0 2px 0 rgba(15, 61, 62, 0.25);
}

.btn-submit:active {
  transform: translateY(1px);
}

.btn-submit:disabled {
  opacity: 0.65;
  cursor: default;
  box-shadow: none;
}

.form-error {
  display: none;
  color: var(--error);
  font-size: 14px;
  text-align: center;
  margin-top: 14px;
}

.form-error.show {
  display: block;
}

/* Footer */
.site-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--field-border);
  color: #7a756c;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.site-footer p {
  margin: 0;
}

.footer-credit {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 400;
  color: #a8a399;
  letter-spacing: 0.06em;
}

/* Footer links read as plain footer text and only reveal on hover.
   Scoped to .site-footer a and including :link / :visited so they win
   over the browser default a:link / a:visited (which would otherwise
   force the blue underlined look). color: inherit makes each link match
   its own line: the main line tone and the lighter credit tone. */
.site-footer a,
.site-footer a:link,
.site-footer a:visited {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.site-footer a:hover,
.site-footer a:focus {
  color: inherit;
  border-bottom-color: currentColor;
}

/* Confirmation screen */
.confirmation {
  text-align: center;
  padding: 20px 0;
}

.confirmation .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--emerald);
  color: var(--cream);
  font-size: 34px;
  line-height: 64px;
  margin: 0 auto 18px;
}

.confirmation h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.confirmation .preview-note {
  color: var(--gold);
  font-style: italic;
  margin-bottom: 26px;
}

.summary {
  text-align: left;
  background: #FFFFFF;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 auto 24px;
}

.summary dl {
  margin: 0;
}

.summary dt {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
}

.summary dt:first-child {
  margin-top: 0;
}

.summary dd {
  margin: 2px 0 0;
  font-size: 17px;
  color: var(--charcoal);
  word-break: break-word;
}

.summary .sig-thumb {
  margin-top: 6px;
  max-width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: #FFF;
}

.hidden {
  display: none !important;
}

/* Larger screens */
@media (min-width: 560px) {
  .wrap {
    padding-top: 40px;
  }
  .logo {
    height: 80px;
  }
  .page-title {
    font-size: 36px;
  }
}
