/* styles.css — shared styles for the Ms. Rose's gift card refund portal */

:root {
  --brand: #c8302a;
  --brand-dark: #8e1d18;
  --brand-soft: #f5e1dc;
  --accent: #b48a4e;
  --bg-top: #fefbf6;
  --bg-mid: #fbf6ee;
  --bg-bot: #f4ebe0;
  --bg-card: #ffffff;
  --text: #2a1d1d;
  --text-soft: #56423f;
  --muted: #8a7a76;
  --border: #ead8d0;
  --success-bg: #e7f3ec;
  --success-text: #1e6b3b;
  --error-bg: #fbe7e7;
  --error-text: #8a1f1f;
  --info-bg: #fbf1e0;
  --info-text: #7a5a1f;
  --shadow-sm: 0 2px 12px rgba(120, 30, 30, 0.06);
  --shadow-md: 0 14px 44px rgba(120, 30, 30, 0.09);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, var(--bg-top) 0%, var(--bg-mid) 55%, var(--bg-bot) 100%);
}

.shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

/* === Logo === */

.brand {
  text-align: center;
  margin-bottom: 56px;
}
.brand a {
  display: inline-block;
  transition: opacity 0.2s ease;
}
.brand a:hover { opacity: 0.85; }
.brand img {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* === Decorative divider === */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin: 44px 0;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  max-width: 140px;
}
.divider .flourish {
  color: var(--accent);
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.6em;
  padding-left: 0.6em;
}

/* === Thank-you letter (homepage feature) === */

.letter {
  text-align: center;
  font-family: var(--serif);
}
.letter h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-style: italic;
  font-weight: 400;
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0 0 36px;
  letter-spacing: -0.01em;
}
.letter p {
  font-size: clamp(17px, 2.1vw, 19px);
  line-height: 1.8;
  color: var(--text-soft);
  margin: 0 0 22px;
  text-align: left;
}
.letter h2 {
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 19px);
  font-style: italic;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 38px 0 12px;
  text-align: left;
  letter-spacing: 0.01em;
}
.letter h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--accent);
  margin-top: 10px;
}
.letter .signature {
  font-style: italic;
  color: var(--brand-dark);
  margin-top: 32px;
  line-height: 1.7;
}
.letter .signature span { display: block; }
.letter .signature .from { font-weight: 600; font-style: normal; letter-spacing: 0.01em; }

/* === Closure detail === */

.closure {
  text-align: center;
  margin: 36px 0 28px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.closure strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--brand-dark);
  margin-top: 10px;
  font-style: italic;
}

/* === CTA group === */

.cta-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 8px 0 16px;
}

/* === Primary CTA button === */

.cta-wrap {
  display: flex;
  justify-content: center;
  margin: 0;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 36px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(200, 48, 42, 0.22);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}
.cta:hover {
  background: var(--brand-dark);
  box-shadow: 0 10px 26px rgba(140, 30, 24, 0.28);
}
.cta:active { transform: translateY(1px); }
.cta .arrow {
  font-size: 18px;
  transition: transform 0.15s ease;
}
.cta:hover .arrow { transform: translateX(3px); }

/* === Secondary CTA (text link with arrow) === */
.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 4px;
}
.cta-secondary:hover {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-secondary .arrow { transition: transform 0.15s ease; }
.cta-secondary:hover .arrow { transform: translateX(2px); }

/* === Footer === */

.foot {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 72px;
}
.foot .foot-line {
  margin: 0 0 14px;
}
.foot a {
  color: var(--brand);
  text-decoration: none;
}
.foot a:hover { text-decoration: underline; }

.socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.socials a:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: #fff;
  text-decoration: none;
}
.socials svg { display: block; }

/* === Refund form page === */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
  text-decoration: none;
  margin-bottom: 20px;
  font-weight: 500;
}
.back-link:hover { color: var(--brand); }

.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 40px 36px;
  box-shadow: var(--shadow-md);
}

.form-card h1 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.form-card .lead {
  color: var(--text-soft);
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.65;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row.single { grid-template-columns: 1fr; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
  letter-spacing: 0.02em;
}
label .required { color: var(--brand); }
label .optional { color: var(--muted); font-weight: 400; font-size: 12px; }

input, textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(200, 48, 42, 0.12);
}
input::placeholder { color: #b9aba6; }

.help {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

button.submit {
  width: 100%;
  padding: 15px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  transition: background 0.15s ease;
  font-family: var(--sans);
  letter-spacing: 0.01em;
}
button.submit:hover:not(:disabled) { background: var(--brand-dark); }
button.submit:disabled { opacity: 0.6; cursor: not-allowed; }

.status {
  padding: 16px 18px;
  border-radius: 10px;
  margin-top: 18px;
  font-size: 15px;
  display: none;
  line-height: 1.55;
}
.status.success { background: var(--success-bg); color: var(--success-text); display: block; }
.status.error { background: var(--error-bg); color: var(--error-text); display: block; }
.status.info { background: var(--info-bg); color: var(--info-text); display: block; }
.status strong { display: block; margin-bottom: 6px; }

/* === Pre-launch-only content (hidden once PORTAL_OPEN flips to true) === */

.secondary-wrap {
  text-align: center;
  margin: 18px 0 24px;
}
body.portal-open .pre-launch-only { display: none; }

/* === "Coming Sunday" modal === */

.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(42, 29, 29, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-card);
  border-radius: 18px;
  max-width: 480px;
  width: 100%;
  padding: 38px 34px 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  text-align: center;
}
.modal h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--brand-dark);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
.modal p {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 0 0 16px;
}
.modal p.modal-continuation {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--text-soft);
  margin: 0 0 22px;
}
.modal p:last-of-type { margin-bottom: 22px; }
.modal p strong { color: var(--text); font-weight: 600; }
.modal a { color: var(--brand); text-decoration: none; }
.modal a:hover { text-decoration: underline; }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.modal-close:hover {
  background: var(--bg-mid);
  color: var(--brand);
}

.modal-ok {
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.modal-ok:hover { background: var(--brand-dark); }

/* === Responsive === */

@media (max-width: 560px) {
  .shell { padding: 40px 18px 64px; }
  .brand { margin-bottom: 40px; }
  .brand img { max-width: 260px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px 26px; }
  .form-card h1 { font-size: 26px; }
  .letter h1 { line-height: 1.25; }
  .cta { padding: 15px 28px; font-size: 15px; }
}
