:root {
  --bg-start: #f8fbff;
  --bg-end: #eef6ff;
  --text: #020617;
  --muted: #7d93b4;
  --left-heading: #0f2344;
  --left-body: #526989;
  --left-strong: #24456f;
  --blue: #2563eb;
  --blue-soft: #c8dcff;
  --blue-icon: #5aa0ff;
  --green: #15803d;
  --green-soft: #c2ead9;
  --border: #c9d6e8;
  --input-text: #425b81;
  --shadow: 0 26px 58px rgba(15, 23, 42, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--bg-end) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: #1e3a8a;
  background: #dbeafe;
}

.page-shell {
  min-height: 100vh;
  padding: 33px 50px 18px;
}

.recovery-panel {
  display: grid;
  grid-template-columns: minmax(430px, 658px) minmax(650px, 1fr);
  gap: clamp(42px, 4.6vw, 73px);
  align-items: start;
  max-width: 1710px;
  margin: 0 auto;
}

.contact-copy {
  padding-top: 3px;
}

.contact-copy h1 {
  margin: 0;
  color: var(--left-heading);
  font-size: 43px;
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--left-body);
  font-size: 22px;
  line-height: 1.55;
  font-weight: 400;
}

.contact-list {
  display: grid;
  gap: 44px;
  margin-top: 61px;
}

.contact-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  align-items: center;
}

.icon-box {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  border-radius: 15px;
}

.icon-box.blue {
  background: var(--blue-soft);
  color: var(--blue-icon);
}

.icon-box.green {
  background: var(--green-soft);
  color: var(--green);
}

.icon-box svg {
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-item h2 {
  margin: 0 0 4px;
  color: var(--left-strong);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
}

.contact-item p {
  margin: 0;
  color: #526f99;
  font-size: 20px;
  line-height: 1.4;
}

.contact-item .whatsapp {
  color: var(--green);
}

.case-form {
  width: 100%;
  min-height: 720px;
  padding: 36px 40px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 29px;
  margin-bottom: 34px;
}

label {
  display: block;
}

label span {
  display: block;
  margin-bottom: 10px;
  color: #000817;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #ffffff;
  color: var(--input-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input,
select {
  height: 51px;
  padding: 0 15px;
}

select {
  color: #020617;
  appearance: auto;
}

textarea {
  min-height: 150px;
  padding: 12px 15px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #47628a;
  opacity: 1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

input:read-only {
  background: #f8fafc;
}

.email-input-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.otp-button {
  min-height: 44px;
  height: auto;
  width: fit-content;
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.otp-button:hover:not(:disabled) {
  background: #bfdbfe;
}

.otp-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 2px;
}

.otp-button:disabled,
.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.otp-section {
  margin: 18px 0 0;
}

.full-field {
  margin-bottom: 34px;
}

.submit-button {
  padding: 12px 16px;
  min-height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  height: auto;
  margin-top: -4px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #ffffff;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.submit-button:disabled {
  background: #e2e8f0;
  color: #475569;
  opacity: 1;
}

.submit-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button:hover:not(:disabled) {
  background: #1d4ed8;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
  transform: translateY(-1px);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.3);
  outline-offset: 3px;
}

.form-message {
  min-height: 22px;
  margin: 12px 0 0;
  padding: 0;
  border-radius: 0;
  color: #334155;
  background: transparent;
  font-size: 15px;
  line-height: 1.4;
  text-align: left;
}

.form-message:empty {
  display: none;
}

.form-message--notice {
  color: #475569;
  background: transparent;
}

.form-message--success {
  color: #166534;
  background: transparent;
}

.form-message--error {
  color: #b91c1c;
  background: transparent;
}

[hidden] { display: none !important; }
.form-section { min-width: 0; padding: 0; margin: 0 0 28px; border: 0; }
.form-section + .form-section { border-top: 1px solid #e5edf6; padding-top: 24px; }
.form-section legend { padding: 0 0 20px; font-size: 20px; font-weight: 700; color: var(--left-heading); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.contact-grid .email-field { grid-column: 1; }
.contact-grid .phone-field { grid-column: 2; grid-row: 2; }
.contact-grid > .field-group:first-child { grid-column: 1 / -1; }
.field-group { min-width: 0; }
.field-group > label, .otp-section > label { margin-bottom: 9px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.field-group > .otp-button { margin-top: 10px; }
.otp-controls { display: grid; grid-template-columns: minmax(0, 160px) auto; gap: 10px; justify-content: start; align-items: stretch; }
.otp-controls input { min-width: 0; height: 44px; }
.otp-controls .otp-button { margin: 0; }
.otp-section > label { font-size: 14px; }
.case-form .field-row { gap: 24px; margin-bottom: 24px; }
.submission-section { border-top: 1px solid #e5edf6; padding-top: 22px; }
.verification-summary { margin-bottom: 24px; }
.verification-summary h2 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.verification-statuses { display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: #526989; }
.verification-statuses span { display: inline-flex; align-items: center; gap: 8px; }
.verification-statuses span::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.verification-statuses .is-verified { color: #166534; }
.verification-statuses .is-verified::before { background: currentColor; }
.field-group .form-message--success { display: table; padding: 4px 9px; border-radius: 6px; background: #ecfdf3; font-size: 14px; }
.field-group .form-message:empty { display: none; }
.otp-button:disabled { opacity: 1; color: #526989; background: #edf2f8; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

@media (max-width: 1180px) {
  .page-shell {
    padding: 34px 28px;
  }

  .recovery-panel {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact-copy {
    max-width: 760px;
  }

  .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 34px;
    margin-top: 38px;
  }

  .case-form {
    min-height: auto;
  }
}

@media (max-width: 980px) {
  .case-form {
    padding: 38px 40px 30px;
  }

  .otp-button {
    width: fit-content;
  }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .email-field, .contact-grid .phone-field { grid-column: auto; grid-row: auto; }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 26px 16px;
  }

  .contact-copy h1 {
    font-size: 34px;
  }

  .lead {
    margin-top: 18px;
    font-size: 18px;
  }

  .contact-list {
    grid-template-columns: 1fr;
  }

  .contact-list {
    gap: 24px;
    margin-top: 34px;
  }

  .contact-item {
    grid-template-columns: 56px 1fr;
    gap: 17px;
  }

  .icon-box {
    width: 56px;
    height: 56px;
  }

  .contact-item h2 {
    font-size: 19px;
  }

  .contact-item p {
    overflow-wrap: anywhere;
    font-size: 17px;
  }

  .case-form {
    padding: 28px 20px 22px;
    border-radius: 16px;
  }

  .field-row,
  .full-field {
    margin-bottom: 22px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  label span {
    font-size: 16px;
  }

  .submit-button {
    height: auto;
    font-size: 18px;
  }
}
