:root {
  --sage: #839380;
  --sage-dark: #667563;
  --sage-light: #eef1ec;
  --rose: #caa8a4;
  --ink: #343934;
  --muted: #737a72;
  --paper: #fffdf9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(202,168,164,.18), transparent 27rem),
    radial-gradient(circle at 88% 85%, rgba(131,147,128,.20), transparent 29rem),
    var(--sage-light);
  font-family: Montserrat, Arial, sans-serif;
}

.page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.card {
  position: relative;
  width: min(100%, 470px);
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 48px 38px;
  text-align: center;
  background: rgba(255,253,249,.96);
  border: 1px solid rgba(131,147,128,.3);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(52,57,52,.12);
  overflow: hidden;
}

.card::before,
.card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(131,147,128,.22);
  border-radius: 50%;
  pointer-events: none;
}

.card::before { top: -112px; right: -72px; }
.card::after { bottom: -116px; left: -76px; }

.language-switch {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  margin: 0;
}

.language-switch select {
  width: 48px;
  height: 30px;
  padding: 0 7px;
  color: var(--sage-dark);
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(131,147,128,.42);
  border-radius: 10px;
  outline: none;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.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;
}

.brand {
  margin-bottom: 5px;
  color: var(--sage-dark);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: .28em;
  text-indent: .28em;
}

.eyebrow {
  margin: 0 0 28px;
  color: var(--rose);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(39px, 10vw, 54px);
  font-weight: 500;
  line-height: .98;
}

.intro {
  max-width: 330px;
  margin: 0 auto 34px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

form { text-align: left; }

label {
  display: block;
  margin: 0 0 9px 3px;
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 600;
}

input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d9ddd7;
  border-radius: 14px;
  outline: none;
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 4px rgba(131,147,128,.13);
}

button, .button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, background .2s;
}

form button, .primary {
  margin-top: 14px;
  color: #fff;
  background: var(--sage);
  border: 1px solid var(--sage);
}

button:active, .button:active { transform: scale(.985); }
form button:hover, .primary:hover { background: var(--sage-dark); }

.message {
  min-height: 20px;
  margin: 12px 3px 0;
  color: #9a554d;
  font-size: 12px;
  line-height: 1.5;
}

.customer-view .eyebrow { margin-bottom: 16px; }
.actions { display: grid; gap: 12px; }
.actions .button { margin: 0; }

.secondary {
  color: var(--sage-dark);
  background: transparent;
  border: 1px solid var(--sage);
}

.secondary:hover { background: rgba(131,147,128,.08); }

.help-button {
  width: auto;
  min-height: auto;
  margin: 22px auto 0;
  padding: 5px 8px;
  color: var(--sage-dark);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.help-dialog {
  width: min(calc(100% - 36px), 460px);
  padding: 42px 34px 30px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(131,147,128,.3);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(52,57,52,.22);
}

.help-dialog::backdrop { background: rgba(38,43,38,.48); }

.help-dialog h2 {
  margin: 0 0 20px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  text-align: center;
}

.help-dialog .eyebrow { margin-bottom: 9px; text-align: center; }

.help-dialog ol {
  margin: 0 0 25px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.help-dialog li { padding: 0 0 10px 5px; }
.help-dialog .primary { margin-top: 0; }

.dialog-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-family: Arial, sans-serif;
  font-size: 26px;
  font-weight: 400;
}

.share-status {
  min-height: 19px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.expiry-status {
  margin: -17px 0 26px;
  padding: 12px 15px;
  color: var(--sage-dark);
  background: rgba(131,147,128,.1);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.back-button {
  display: block;
  width: auto;
  min-height: auto;
  margin: 12px auto 0;
  padding: 7px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-note {
  margin: auto 0 0;
  padding-top: 36px;
  color: #999f98;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

[hidden] { display: none !important; }

@media (max-width: 520px) {
  .page { padding: 0; }
  .card {
    width: 100%;
    min-height: 100svh;
    padding: 52px 25px 30px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
