
:root {
  --paper: #f7f5f0;
  --white: #fffefa;
  --ink: #24231f;
  --muted: #77736b;
  --line: #dedbd2;
  --red: #a53b32;
  --red-dark: #842d26;
  --soft-red: #fbf0ed;
  --green: #356c4b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.topbar {
  min-height: 76px;
  padding: 0 6.2%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.7px;
  text-decoration: none;
}

.brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.brand-light {
  color: var(--red);
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.back-link:hover,
.bottom-link a:hover {
  color: var(--red);
}

.page {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(400px, 0.98fr);
}

.editorial {
  min-height: 690px;
  padding: 32px 8% 25px 12%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.editorial-copy {
  max-width: 590px;
  width: 100%;
  margin: 45px auto;
}

.overline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.editorial h1 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(46px, 5.2vw, 76px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -2.5px;
}

.editorial h1 em {
  color: var(--red);
  font-weight: 500;
}

.intro {
  max-width: 390px;
  margin: 22px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.editorial-art {
  max-width: 470px;
  width: 100%;
}

.editorial-art img {
  display: block;
  width: 100%;
  max-height: 230px;
  aspect-ratio: 1.9 / 1;
  object-fit: cover;
  background: #e8e3d9;
}

.art-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.art-caption span:first-child {
  color: var(--red);
  font-weight: 700;
}

.editorial-footer,
.side-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #969187;
  font-size: 9px;
  letter-spacing: 0.5px;
}

.form-side {
  min-width: 0;
  padding: 38px 9% 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-panel {
  width: 100%;
  max-width: 390px;
  margin: auto;
  padding: 28px 0;
}

.section-number {
  color: var(--red);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.form-panel h2 {
  margin: 14px 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -1.2px;
}

.subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 700;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  color: #8a857b;
  font-size: 13px;
  pointer-events: none;
}

.input-wrap input {
  width: 100%;
  min-height: 49px;
  padding: 12px 14px 12px 42px;
  border: 1px solid #cfcbc1;
  border-radius: 0;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
}

.input-wrap input::placeholder {
  color: #aaa59b;
}

.input-wrap input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(165, 59, 50, 0.08);
}

.input-wrap input.invalid {
  border-color: var(--red);
}

.field-error {
  display: block;
  margin-top: 5px;
  color: var(--red);
  font-size: 11px;
  line-height: 1.5;
}

.field-error:empty {
  display: none;
}

.form-message {
  margin: 12px 0;
  padding: 13px;
  border: 1px solid #e6c6c0;
  background: var(--soft-red);
  color: var(--red-dark);
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.form-message.success {
  border-color: #c8ddce;
  background: #eff6f0;
  color: var(--green);
}

.submit-button {
  width: 100%;
  min-height: 51px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease;
}

.submit-button:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.55);
}

.security-note i {
  margin-top: 3px;
  color: var(--red);
  font-size: 14px;
}

.security-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.bottom-link {
  margin: 25px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.bottom-link a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.side-bottom {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
}

@media (max-width: 1050px) {
  .page {
    grid-template-columns: minmax(0, 0.9fr) minmax(370px, 1.1fr);
  }

  .editorial {
    padding-left: 8%;
    padding-right: 7%;
  }

  .form-side {
    padding-left: 7%;
    padding-right: 7%;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 68px;
    padding: 0 20px;
  }

  .brand {
    gap: 7px;
    font-size: 15px;
  }

  .brand-logo {
    width: 27px;
    height: 27px;
  }

  .page {
    min-height: calc(100vh - 68px);
    display: block;
  }

  .editorial {
    display: none;
  }

  .form-side {
    min-height: calc(100vh - 68px);
    padding: 24px 22px 20px;
  }

  .form-panel {
    max-width: 430px;
    padding: 15px 0 30px;
  }

  .form-panel h2 {
    font-size: 35px;
  }

  .side-bottom {
    max-width: 430px;
    width: 100%;
    margin: 0 auto;
    font-size: 8px;
  }
}

@media (max-width: 360px) {
  .topbar {
    padding: 0 13px;
  }

  .brand {
    font-size: 13px;
  }

  .back-link {
    font-size: 11px;
  }

  .form-side {
    padding-left: 17px;
    padding-right: 17px;
  }

  .form-panel h2 {
    font-size: 31px;
  }
}

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