:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  --blue: #2f61a8;
  --blue-dark: #173f78;
  --blue-soft: #e9f1fb;
  --ink: #172033;
  --muted: #657087;
  --line: #d7deea;
  --yellow: #ffc928;
  --danger: #a32626;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 10%, rgba(47, 97, 168, .2), transparent 34rem),
    linear-gradient(135deg, #f3f6fb, #dfe8f4);
}

.page-shell { padding: 40px 16px; }

.form-card {
  width: min(820px, 100%);
  margin: 0 auto;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(23, 63, 120, .18);
  overflow: hidden;
}

.form-header {
  padding: 36px 40px 30px;
  color: white;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
}

.back-link {
  display: inline-flex;
  margin: 0 0 22px;
  color: #e5effd;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible { color: white; text-decoration: underline; }

.eyebrow {
  margin: 0 0 10px;
  color: #bdd6f8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 { margin: 0; font-size: clamp(28px, 5vw, 42px); line-height: 1.1; }
.form-header > p:last-child { margin: 14px 0 0; color: #e5effd; line-height: 1.5; }

form { padding: 30px 40px 40px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 650; }
.field-wide { grid-column: 1 / -1; }
.field b, .consent b { color: var(--danger); }
.field small { color: var(--muted); font-size: 12px; font-weight: 400; }

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fbfe;
  color: var(--ink);
  font: inherit;
  font-weight: 450;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}

input, select { min-height: 50px; padding: 0 14px; }
textarea { padding: 14px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(47, 97, 168, .13);
}
select:disabled { color: #8b94a6; cursor: not-allowed; }

.dependency-step {
  padding: 18px;
  border: 1px solid #cbd9ec;
  border-radius: 14px;
  background: var(--blue-soft);
}

.dependency-step span { display: flex; align-items: center; gap: 8px; }
.dependency-step i {
  display: inline-grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--blue);
  font-style: normal;
  font-size: 13px;
}

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.check input { width: 18px; min-height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent { margin-top: 4px; color: var(--muted); }
.honeypot { position: absolute; left: -10000px; }

.status { margin: 24px 40px 0; padding: 14px 16px; border-radius: 11px; font-size: 14px; }
.status-info { color: var(--blue-dark); background: var(--blue-soft); }
.status-error { color: #7e1d1d; background: #fdecec; }
.status-success { color: #145b32; background: #e7f8ee; }
form .status { margin: 22px 0 0; }

.submit-button {
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  border: 0;
  border-radius: 12px;
  color: #2a2408;
  background: var(--yellow);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 201, 40, .3);
}
.submit-button:disabled { opacity: .65; cursor: wait; }

.request-start-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  place-items: center;
}

.request-start-card { max-width: 900px; }
.request-start-header { text-align: center; }
.request-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 36px 40px 42px;
}

.request-action {
  display: grid;
  min-height: 190px;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 26px;
  border: 1px solid #cbd9ec;
  border-radius: 18px;
  color: var(--ink);
  background: #f9fbfe;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.request-action:hover,
.request-action:focus-visible {
  transform: translateY(-3px);
  border-color: var(--blue);
  background: white;
  box-shadow: 0 16px 30px rgba(23, 63, 120, .14);
  outline: none;
}

.request-action-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: var(--blue);
  font-size: 28px;
  font-weight: 800;
}

.request-action-electricity .request-action-icon { color: #2a2408; background: var(--yellow); }
.request-action-site { grid-column: 1 / -1; min-height: 138px; }
.request-action-site .request-action-icon { background: #58708f; }
.request-action-copy { display: grid; gap: 9px; }
.request-action-copy strong { font-size: 21px; line-height: 1.25; }
.request-action-copy small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.request-action-arrow { color: var(--blue); font-size: 26px; font-weight: 800; }

.zip-page { display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; }
.zip-card { max-width: 600px; }
.zip-summary { display: grid; gap: 8px; padding: 26px 40px 0; }
.zip-summary span { color: var(--muted); font-size: 13px; font-weight: 700; }
.zip-summary strong { font-size: 20px; line-height: 1.35; }
.zip-summary p { margin: 0; color: var(--muted); }
.zip-form { padding-top: 24px; }
.zip-closed { margin: 26px 40px 40px; padding: 20px; border-radius: 12px; background: #e7f8ee; color: #145b32; }
.zip-closed p { margin: 7px 0 0; }

@media (max-width: 640px) {
  body { background: white; }
  .page-shell {
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  }
  .form-card { border-radius: 0; }
  .form-header { padding: 28px 20px 24px; }
  form { padding: 24px 20px 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .status { margin-left: 20px; margin-right: 20px; }
  input, select, textarea { font-size: 16px; }
  input, select { min-height: 52px; }
  .dependency-step { padding: 15px; }
  .check { font-size: 15px; }
  .submit-button { min-height: 58px; font-size: 16px; }
  .zip-summary { padding: 22px 20px 0; }
  .zip-closed { margin: 22px 20px 32px; }
  .request-start-page { display: block; }
  .request-actions { grid-template-columns: 1fr; padding: 24px 20px 32px; }
  .request-action-site { grid-column: auto; }
  .request-action { min-height: 144px; padding: 21px 18px; }
  .request-action-copy strong { font-size: 19px; }
}

@media (max-width: 360px) {
  .form-header { padding: 24px 16px 22px; }
  form { padding: 22px 16px 30px; }
  .status { margin-left: 16px; margin-right: 16px; }
  .dependency-step { padding: 13px; }
  .request-actions { padding: 20px 16px 28px; }
  .request-action { grid-template-columns: auto 1fr; }
  .request-action-arrow { display: none; }
}
