:root {
  --blue: #003f59;
  --blue-dark: #002e42;
  --orange: #ff6600;
  --surface: #f3f7f9;
  --white: #ffffff;
  --text-muted: #687880;
  --line: #d7e0e4;
  --font: "Kumbh Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-family: var(--font);
  color: var(--blue-dark);
  background: var(--surface);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

.form-page {
  background:
    linear-gradient(to bottom, var(--blue) 0, var(--blue) 480px, var(--surface) 480px, var(--surface) 100%);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--white);
  background: var(--orange);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.form-layout {
  width: min(calc(100% - 40px), 880px);
  margin: 0 auto;
  padding: 82px 0 90px;
}

.form-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 790px);
  margin: 0 auto 42px;
  padding-inline: 28px;
  color: var(--white);
}

.form-branding__logo {
  display: inline-flex;
  width: min(48%, 290px);
  line-height: 0;
}

.form-branding__logo img {
  width: 100%;
  height: auto;
}

.form-branding__message {
  margin: 0;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.02;
  font-weight: 600;
}

.form-branding__message strong {
  display: block;
  color: var(--orange);
  font-weight: 700;
}

.interest-card {
  width: min(100%, 792px);
  margin: 0 auto;
  padding: 72px 58px 62px;
  border-radius: 40px;
  background: var(--white);
  box-shadow: 0 15px 18px rgba(0, 46, 66, 0.18);
}

.interest-card__header {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.interest-card__header h1 {
  margin: 0;
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.interest-card__header p {
  margin: 14px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.45;
}

.interest-form {
  display: grid;
  gap: 25px;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

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

.form-field label {
  font-size: 15px;
  font-weight: 700;
}

.form-field label span,
.privacy-field label span {
  color: #d52b1e;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  color: var(--blue-dark);
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input::placeholder {
  color: #7c858a;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 102, 0, 0.12);
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(150px, 1fr);
  gap: 16px;
}

.privacy-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
}

.privacy-field input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--orange);
}

.privacy-field label {
  color: #52666f;
  font-size: 15px;
  line-height: 1.4;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--orange);
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.form-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 10px 20px rgba(255, 102, 0, 0.25);
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  filter: none;
  box-shadow: none;
}

.form-submit:focus-visible,
.back-link:focus-visible,
.form-branding__logo:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

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

.form-feedback {
  margin: -16px 0 24px;
  padding: 13px 16px;
  border: 1px solid #e6b54b;
  border-radius: 10px;
  color: #6f510f;
  background: #fff8e5;
  font-size: 14px;
  line-height: 1.4;
}

.form-feedback.is-success {
  border-color: #80b99a;
  color: #195d38;
  background: #ecf8f1;
}

.form-feedback.is-error {
  border-color: #e4a19b;
  color: #8b2018;
  background: #fff0ef;
}

.back-link {
  display: table;
  margin: 30px auto 0;
  color: var(--blue-dark);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 700px) {
  .form-page {
    background:
      linear-gradient(to bottom, var(--blue) 0, var(--blue) 390px, var(--surface) 390px, var(--surface) 100%);
  }

  .form-layout {
    width: min(calc(100% - 32px), 540px);
    padding: 38px 0 60px;
  }

  .form-branding {
    flex-direction: column;
    gap: 25px;
    margin-bottom: 32px;
    padding-inline: 0;
    text-align: center;
  }

  .form-branding__logo {
    width: 210px;
  }

  .form-branding__message {
    font-size: 20px;
  }

  .interest-card {
    padding: 42px 24px 36px;
    border-radius: 28px;
  }

  .interest-card__header {
    margin-bottom: 32px;
  }

  .interest-card__header h1 {
    font-size: 30px;
  }

  .interest-card__header p {
    font-size: 15px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
