* {
  box-sizing: border-box;
}

:root {
  --black: #101010;
  --black-soft: #171717;
  --white: #ffffff;
  --off-white: #f6f6f4;
  --gray-100: #eeeeec;
  --gray-200: #dededb;
  --gray-400: #888884;
  --gray-600: #565653;
  --red: #d71920;
  --red-dark: #b51218;
  --blue: #0066a1;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.08);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-oeste {
  font-size: 23px;
  font-weight: 800;
}

.brand-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.5);
}

.brand-chevrolet {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.header-link {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.9;
}

.header-link:hover {
  opacity: 1;
}

/* Hero */

.hero {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 42%, rgba(215, 25, 32, 0.23), transparent 27%),
    linear-gradient(118deg, #0c0c0c 0%, #171717 62%, #111 100%);
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.07) 49% 50%, transparent 51%),
    linear-gradient(45deg, transparent 0 48%, rgba(255,255,255,.04) 49% 50%, transparent 51%);
  background-size: 72px 72px;
  transform: scale(1.4) rotate(-8deg);
}

.hero-content {
  position: relative;
  padding: 130px 0 100px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #e7e7e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(48px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.hero h1 strong {
  font-weight: 800;
}

.hero-text {
  max-width: 600px;
  margin: 30px 0 36px;
  color: #d3d3d0;
  font-size: 18px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding: 15px 20px;
  background: #fff;
  color: var(--black);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  background: #f1f1ef;
}

.hero-cta span {
  font-size: 18px;
}

/* Intro */

.intro {
  padding: 100px 0;
  background: var(--white);
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: end;
}

.intro .section-kicker,
.form-heading .section-kicker,
.closing .section-kicker {
  color: var(--red);
}

.intro h2,
.form-heading h2,
.closing h2 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.intro-copy {
  margin: 0;
  color: var(--gray-600);
  font-size: 17px;
  line-height: 1.8;
}

/* Form section */

.application-section {
  padding: 100px 0 120px;
  background: var(--off-white);
}

.form-heading {
  margin-bottom: 46px;
}

.form-heading p:last-child {
  margin: 20px 0 0;
  color: var(--gray-600);
  font-size: 15px;
}

.form-heading span,
.field label span {
  color: var(--red);
}

.form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-section {
  padding: 54px 60px 64px;
}

.form-section + .form-section {
  border-top: 1px solid var(--gray-100);
}

.form-section-title {
  display: flex;
  gap: 18px;
  margin-bottom: 42px;
}

.form-section-title .number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.form-section-title h3 {
  margin: 2px 0 5px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.form-section-title p {
  margin: 0;
  color: var(--gray-400);
  font-size: 14px;
}

.field {
  margin-top: 30px;
}

.field:first-of-type {
  margin-top: 0;
}

.field label,
.label-row > label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 800;
}

input[type="text"],
input[type="tel"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: var(--black);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font: inherit;
}

select {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  color: var(--black);
  outline: none;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

textarea {
  min-height: 160px;
  padding: 15px 16px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #777;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.045);
}

input.invalid,
select.invalid,
textarea.invalid {
  border-color: var(--red);
}

.hint {
  display: block;
  margin-top: 8px;
  color: var(--gray-400);
  font-size: 12px;
}

.top-hint {
  margin-top: -4px;
  margin-bottom: 16px;
}

.phone-wrap {
  position: relative;
}

.phone-prefix {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  height: 56px;
  width: 57px;
  display: grid;
  place-items: center;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 700;
  border-right: 1px solid var(--gray-200);
}

.phone-wrap input {
  padding-left: 73px;
}

/* Cities */

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.selection-count {
  color: var(--gray-400);
  font-size: 12px;
  font-weight: 700;
}

.selection-count.limit {
  color: var(--red);
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.city-option {
  margin: 0;
  cursor: pointer;
}

.city-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.city-box {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  color: var(--gray-600);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.city-option:hover .city-box {
  border-color: #aaa;
}

.city-option input:checked + .city-box {
  border-color: var(--black);
  background: #f4f4f2;
  color: var(--black);
}

.checkmark {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #c8c8c4;
  border-radius: 6px;
  color: transparent;
  font-size: 13px;
  font-weight: 900;
}

.city-option input:checked + .city-box .checkmark {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
}

/* Upload */

.upload-area {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 25px;
  border: 1.5px dashed #bdbdb9;
  border-radius: 14px;
  background: #fafaf8;
  color: var(--gray-600);
  cursor: pointer;
  text-align: center;
  transition: border-color .2s ease, background .2s ease;
}

.upload-area:hover,
.upload-area.drag-over {
  border-color: var(--black);
  background: #f3f3f1;
}

.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
}

.upload-area strong {
  color: var(--black);
  font-size: 15px;
}

.upload-area span {
  font-size: 13px;
}

.upload-area u {
  font-weight: 700;
}

.upload-area small {
  margin-top: 8px;
  color: var(--gray-400);
  font-size: 11px;
}

.file-selected {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fafaf8;
}

.file-icon {
  width: 38px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 7px;
  background: #ececea;
  color: var(--gray-600);
  font-size: 9px;
  font-weight: 900;
}

.file-selected div {
  min-width: 0;
  flex: 1;
}

.file-selected strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.file-selected small {
  display: block;
  margin-top: 2px;
  color: var(--gray-400);
  font-size: 11px;
}

#remove-file {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  background: #eee;
  color: #555;
  font-size: 21px;
  line-height: 1;
}

#remove-file:hover {
  background: #ddd;
}

/* Questions */

.question {
  margin: -2px 0 13px;
  padding: 16px 18px;
  border-left: 3px solid var(--red);
  background: #f7f7f5;
  color: #383835;
  font-size: 14px;
  line-height: 1.65;
}

.textarea-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.counter {
  margin-top: 7px;
  color: var(--gray-400);
  font-size: 11px;
}

/* Consent and submit */

.consent {
  display: flex;
  gap: 13px;
  margin: 0 60px;
  padding: 22px 0;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-600);
}

.consent-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eee;
  color: #444;
  font-size: 12px;
  font-weight: 900;
}

.consent p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.submit-area {
  padding: 26px 60px 52px;
}

.submit-button {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  border-radius: 12px;
  background: var(--black);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  transition: background .2s ease, transform .2s ease;
}

.submit-button:hover:not(:disabled) {
  background: #292929;
  transform: translateY(-1px);
}

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

.button-arrow {
  position: absolute;
  right: 22px;
  font-size: 21px;
  font-weight: 400;
}

.secure-note {
  margin: 10px 0 0;
  color: var(--gray-400);
  text-align: center;
  font-size: 11px;
}

.form-status {
  display: none;
  margin: 0 60px 40px;
  padding: 15px 17px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.form-status.success {
  display: block;
  background: #edf7ef;
  color: #245f30;
}

.form-status.error {
  display: block;
  background: #fff0f0;
  color: #8b1e22;
}

.field-error {
  display: block;
  min-height: 0;
  margin-top: 6px;
  color: var(--red);
  font-size: 11px;
}

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

/* Closing */

.closing {
  padding: 110px 0;
  background: var(--black);
  color: #fff;
}

.closing h2 {
  color: #fff;
}

/* Footer */

.site-footer {
  background: #090909;
  color: #aaa;
}

.footer-inner {
  min-height: 90px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-inner div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-inner strong {
  color: #fff;
  font-size: 18px;
}

.footer-inner span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
}

.footer-inner p {
  margin: 0;
  font-size: 10px;
}

/* Responsive */

@media (max-width: 800px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .header-inner {
    min-height: 70px;
  }

  .header-link {
    display: none;
  }

  .hero {
    min-height: 610px;
  }

  .hero-content {
    padding: 120px 0 75px;
  }

  .hero h1 {
    font-size: clamp(45px, 13vw, 70px);
  }

  .hero-text {
    font-size: 16px;
  }

  .intro,
  .application-section,
  .closing {
    padding: 72px 0;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .form-section {
    padding: 40px 22px 46px;
  }

  .form-section-title {
    margin-bottom: 34px;
  }

  .form-section-title h3 {
    font-size: 21px;
  }

  .city-grid {
    grid-template-columns: 1fr;
  }

  .consent,
  .submit-area {
    margin-left: 22px;
    margin-right: 22px;
    padding-left: 0;
    padding-right: 0;
  }

  .submit-area {
    padding-top: 22px;
    padding-bottom: 42px;
  }

  .form-status {
    margin-left: 22px;
    margin-right: 22px;
  }

  .footer-inner {
    padding: 20px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand-oeste {
    font-size: 20px;
  }

  .brand-chevrolet {
    font-size: 10px;
  }

  .hero-cta {
    width: 100%;
    justify-content: space-between;
  }

  .form-section-title {
    gap: 13px;
  }

  .form-section-title .number {
    width: 38px;
    height: 38px;
  }

  .label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .upload-area {
    min-height: 175px;
  }
}
