:root {
  --ink: #25211e;
  --muted: #6f6761;
  --line: #ded7d0;
  --paper: #fbf8f4;
  --panel: #ffffff;
  --accent: #9a6a5a;
  --accent-dark: #70483c;
  --focus: #1f5f7a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 248, 244, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand img {
  display: block;
  max-width: 190px;
  height: auto;
}

.policy-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
  margin-bottom: 22px;
  padding: clamp(26px, 5vw, 56px);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(37, 33, 30, 0.84) 0%, rgba(37, 33, 30, 0.58) 42%, rgba(37, 33, 30, 0.12) 100%),
    url("assets/hero-dress.jpg") center 40% / cover no-repeat;
  overflow: hidden;
}

.hero-copy {
  max-width: 690px;
  padding: 40px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero .eyebrow,
.hero .lead {
  color: rgba(255, 255, 255, 0.86);
}

h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  font-weight: 500;
}

.hero h1 {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.24);
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 6px;
  padding: 0 20px;
  border-radius: 6px;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.fee-box {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.hero .fee-box {
  background: rgba(255, 255, 255, 0.93);
  border-color: rgba(255, 255, 255, 0.54);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.fee-box span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
}

.fee-box p {
  margin: 6px 0 0;
  color: var(--muted);
}

.portal-form {
  position: relative;
  display: grid;
  gap: 18px;
}

.anchor-target {
  position: absolute;
  top: -90px;
}

.process-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: clamp(18px, 4vw, 34px);
  margin: 0 0 18px;
  padding: clamp(22px, 4vw, 36px) 0;
}

.process-section h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.process-grid article {
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.process-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.hidden-field {
  display: none;
}

.form-section {
  padding: clamp(20px, 3vw, 32px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

h2 {
  margin: 0 0 18px;
  font-size: 21px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

label,
.upload-box {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(31, 95, 122, 0.18);
  border-color: var(--focus);
}

.full-field {
  margin-top: 18px;
}

.upload-box {
  cursor: pointer;
  padding: 28px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: #fffaf6;
}

.upload-box span {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.upload-box input {
  padding: 0;
  border: 0;
}

.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.image-preview img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.5;
}

.checkbox-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
}

button {
  min-height: 50px;
  border: 0;
  border-radius: 6px;
  padding: 0 22px;
  background: var(--accent-dark);
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

#formStatus {
  margin: 0;
  color: var(--muted);
}

.thank-you {
  min-height: 70vh;
  display: grid;
  place-items: center;
}

.thank-you-panel {
  width: min(720px, 100%);
  padding: clamp(28px, 5vw, 48px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
}

.thank-you-panel h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.thank-you-panel a {
  color: var(--accent-dark);
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .brand img {
    max-width: 150px;
  }

  .hero,
  .process-section,
  .field-grid,
  .field-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 620px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(37, 33, 30, 0.16) 0%, rgba(37, 33, 30, 0.78) 58%, rgba(37, 33, 30, 0.9) 100%),
      url("assets/hero-dress.jpg") center top / cover no-repeat;
  }

  .hero-copy {
    padding: 220px 0 0;
  }

  .fee-box {
    width: 100%;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }
}
