:root {
  --bg: #efe5d4;
  --paper: rgba(255, 250, 241, 0.9);
  --paper-strong: #fffdf7;
  --ink: #17212b;
  --muted: #5e6875;
  --line: rgba(23, 33, 43, 0.12);
  --line-strong: rgba(23, 33, 43, 0.2);
  --teal: #0d6e6e;
  --teal-deep: #094f50;
  --amber: #c86b2a;
  --amber-deep: #9d501d;
  --sky: #d9efe9;
  --shadow: 0 20px 60px rgba(35, 44, 56, 0.12);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --max-width: 1120px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(200, 107, 42, 0.18), transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(13, 110, 110, 0.16), transparent 26%),
    linear-gradient(180deg, #f5ecdd 0%, var(--bg) 46%, #e7dcc8 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.45;
}

body::before {
  top: -10vw;
  left: -14vw;
  background: rgba(216, 161, 87, 0.26);
}

body::after {
  right: -10vw;
  bottom: -8vw;
  background: rgba(58, 125, 132, 0.2);
}

.page-shell {
  width: min(calc(100% - 1.25rem), var(--max-width));
  margin: 0 auto;
  padding: 1rem 0 3.5rem;
}

.hero-card,
.form-card,
.summary-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-card {
  overflow: hidden;
  padding: 1.25rem;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(200, 107, 42, 0.22), rgba(13, 110, 110, 0.12));
}

.hero-copy,
.hero-meta {
  position: relative;
  z-index: 1;
}

.hero-meta {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.meta-chip {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(13, 110, 110, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.42);
}

.meta-chip strong,
.meta-chip span {
  display: block;
}

.meta-chip strong {
  font-size: 0.95rem;
}

.meta-chip span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-card,
.summary-card {
  margin-top: 1rem;
  padding: 1.15rem;
}

.eyebrow,
.garment-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 8ch;
  font-size: clamp(2.1rem, 8vw, 4rem);
}

.hero-card h2 {
  font-size: inherit;
}

.campaign-pill {
  display: inline-flex;
  margin: 1rem 0 0.75rem;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  background: rgba(13, 110, 110, 0.12);
  color: var(--teal-deep);
  font-weight: 800;
}

.campaign-description,
.form-hint,
.garment-copy p,
.status-message {
  color: var(--muted);
  line-height: 1.55;
}

.intro-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-weight: 700;
}

.field span {
  font-size: 0.95rem;
}

.field-wide input {
  font-size: 1.05rem;
}

.garment-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.garment-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 250, 241, 0.92)),
    var(--paper-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.garment-card:nth-child(odd) {
  background:
    linear-gradient(180deg, rgba(233, 247, 243, 0.82), rgba(255, 250, 241, 0.92)),
    var(--paper-strong);
}

.garment-copy h2 {
  font-size: clamp(1.25rem, 4.4vw, 1.8rem);
}

.garment-copy p {
  margin: 0.45rem 0 0;
  font-size: 0.96rem;
}

.garment-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  min-height: 3.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 247, 0.95);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

select:disabled {
  opacity: 0.6;
  background: #f1eee7;
}

input:focus,
select:focus,
button:focus {
  outline: 3px solid rgba(13, 110, 110, 0.18);
  outline-offset: 2px;
}

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

.form-hint {
  margin: 1rem 0 0;
  font-weight: 600;
}

.action-bar {
  position: sticky;
  bottom: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.3rem;
}

.action-button,
.primary-button,
.secondary-button {
  min-height: 3.25rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.45rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.action-button,
.primary-button {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, var(--teal) 0%, #169090 100%);
  box-shadow: 0 14px 28px rgba(13, 110, 110, 0.22);
}

.secondary-button {
  color: var(--teal-deep);
  background: rgba(13, 110, 110, 0.1);
}

.accent-button {
  background: linear-gradient(135deg, var(--amber) 0%, #d58137 100%);
  box-shadow: 0 14px 28px rgba(200, 107, 42, 0.24);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.summary-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.summary-table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
}

.summary-table th,
.summary-table td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.summary-table tr:last-child th,
.summary-table tr:last-child td {
  border-bottom: none;
}

.summary-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 800;
}

.confirmation-box,
.final-confirmation {
  margin-top: 1.25rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.checkbox-row input {
  min-height: auto;
  margin-top: 0.2rem;
}

.status-message {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-weight: 700;
}

.status-success {
  color: #1d6e3b;
}

.status-error {
  color: #a03d2b;
}

.status-loading {
  color: var(--teal-deep);
}

.hidden {
  display: none;
}

@media (max-width: 479px) {
  .garment-fields {
    grid-template-columns: 1fr;
  }

  .summary-table th,
  .summary-table td {
    display: block;
    width: 100%;
  }

  .summary-table th {
    padding-bottom: 0.2rem;
    border-bottom: none;
  }

  .summary-table td {
    padding-top: 0;
  }
}

@media (min-width: 720px) {
  .page-shell {
    width: min(calc(100% - 2rem), var(--max-width));
    padding-top: 2rem;
  }

  .hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.85fr);
    gap: 1.5rem;
    align-items: end;
    padding: 2rem;
  }

  .form-card,
  .summary-card {
    padding: 1.6rem;
  }

  .garment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
  }

  .hero-card,
  .form-card,
  .summary-card {
    border-radius: 32px;
  }

  .garment-card {
    padding: 1.2rem;
  }
}
