:root {
  color-scheme: light;
  --ink: #17211f;
  --muted: #60706d;
  --line: #dfe7e3;
  --paper: #ffffff;
  --mist: #eef6f3;
  --sea: #0f766e;
  --sea-dark: #0b5751;
  --coral: #e45f4f;
  --gold: #d49a27;
  --shadow: 0 24px 70px rgba(16, 43, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(228, 95, 79, 0.08)),
    linear-gradient(180deg, #f8fbfa 0%, #e9f3ef 100%);
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.78fr);
  gap: 32px;
  align-items: center;
  padding: 42px 0;
}

.brand-pane {
  min-width: 0;
  min-height: 620px;
  display: grid;
  align-content: space-between;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background:
    linear-gradient(rgba(13, 44, 40, 0.2), rgba(13, 44, 40, 0.64)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1400' height='1000' viewBox='0 0 1400 1000'%3E%3Crect width='1400' height='1000' fill='%231d5f59'/%3E%3Cpath d='M0 720c160-92 320-118 480-78 160 40 320 146 480 112s300-210 440-180v426H0z' fill='%23eef6f3' fill-opacity='.22'/%3E%3Cpath d='M0 822c148-48 300-50 455-8 155 43 319 126 484 97 166-29 311-169 461-139v228H0z' fill='%23ffffff' fill-opacity='.28'/%3E%3Ccircle cx='1090' cy='185' r='116' fill='%23d49a27' fill-opacity='.42'/%3E%3Cpath d='M220 468h330l-44-132 82 132h170l60-230 52 230h305v44H220z' fill='%23ffffff' fill-opacity='.16'/%3E%3Cpath d='M0 0h1400v1000H0z' fill='none'/%3E%3C/svg%3E")
    center / cover;
  box-shadow: var(--shadow);
  color: #fff;
  overflow: hidden;
}

.logo-wrap {
  display: inline-flex;
  width: fit-content;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.logo {
  width: min(168px, 42vw);
  height: auto;
  display: block;
}

.brand-copy {
  min-width: 0;
  max-width: 610px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-copy .eyebrow {
  color: #f6d28a;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.25rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.brand-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.65;
}

.form-panel {
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.panel-head {
  margin-bottom: 24px;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0;
}

form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

label {
  color: #263834;
  font-size: 0.95rem;
  font-weight: 750;
}

input,
textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  min-height: 52px;
  padding: 0 15px;
}

textarea {
  min-height: 126px;
  resize: vertical;
  padding: 14px 15px;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  border-color: var(--sea);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

input::placeholder,
textarea::placeholder {
  color: #9aa7a4;
}

.field-error {
  min-height: 18px;
  color: #b83224;
  font-size: 0.82rem;
  line-height: 1.35;
}

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

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--sea);
}

.submit-btn {
  min-height: 54px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sea), var(--sea-dark));
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 118, 110, 0.26);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(15, 118, 110, 0.31);
}

.submit-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.submit-btn.is-loading .btn-label {
  display: none;
}

.btn-loader {
  display: none;
  width: 21px;
  height: 21px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

.submit-btn.is-loading .btn-loader {
  display: block;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.form-status.error {
  color: #b83224;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 26, 24, 0.58);
}

.modal[hidden] {
  display: none;
}

.modal-card {
  width: min(470px, 100%);
  padding: 34px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.12);
  color: var(--sea);
  font-size: 2rem;
  font-weight: 900;
}

.modal-card h2 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.6;
}

.modal-card button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
  color: var(--sea-dark);
  font-weight: 800;
  cursor: pointer;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .shell {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 24px 0;
  }

  .brand-pane {
    min-height: 360px;
    padding: 26px;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 20px);
    max-width: 1120px;
    gap: 14px;
    padding: 10px 0;
  }

  .shell > * {
    max-width: 100%;
  }

  .brand-pane {
    min-height: 280px;
    padding: 20px;
  }

  .logo-wrap {
    padding: 10px 12px;
  }

  h1 {
    max-width: 320px;
    font-size: 1.6rem;
    line-height: 1.04;
  }

  .brand-copy p:not(.eyebrow) {
    max-width: 320px;
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .form-panel {
    padding: 22px 16px;
  }

  .panel-head h2 {
    font-size: 1.45rem;
  }
}
