.contact-page {
  padding: 20px 0 40px;
}

.contact-hero {
  max-width: 1120px;
  margin: 0 auto 26px;
  padding: 0 20px;
}

.contact-hero-inner {
  min-height: 260px;
  border-radius: 24px;
  padding: 34px 40px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(15, 39, 68, 0.78), rgba(31, 79, 214, 0.5)),
    url("../images/tell-image.jpg") center 35% / cover no-repeat;
  box-shadow: 0 16px 36px rgba(16, 56, 115, 0.18);
  display: grid;
  align-content: center;
}

.contact-hero-kicker {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c9ddff;
}

.contact-hero h1 {
  margin: 6px 0 4px;
  font-size: 48px;
  line-height: 1.15;
}

.contact-hero p {
  margin: 0;
  font-size: 20px;
}

.contact-section {
  max-width: 1120px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.contact-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.contact-heading-line {
  width: 4px;
  height: 46px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #2aa0b4, #0f2744);
}

.contact-heading h2 {
  margin: 0;
  color: #0f2744;
  font-size: 34px;
  line-height: 1.2;
}

.contact-heading p {
  margin: 2px 0 0;
  color: #1a7a8a;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #d8e4f5;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(16, 56, 115, 0.08);
  padding: 24px;
}

.phone-card {
  display: grid;
  gap: 8px;
}

.phone-lead {
  margin: 0;
  color: #4f5f7a;
}

.phone-number {
  display: inline-block;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  color: #1f4fd6;
  letter-spacing: 0.02em;
}

.phone-note {
  margin: 0;
  color: #5d6c86;
}

.form-card {
  padding: 26px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
}

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

.form-row label,
.field-label {
  margin: 0;
  color: #243b63;
  font-size: 15px;
  font-weight: 700;
}

.required {
  margin-left: 8px;
  color: #db2b39;
  font-size: 12px;
  font-weight: 700;
}

.input-text,
.select-box,
.message {
  width: 100%;
  border: 1px solid #c4d5f1;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  color: #1f2c43;
  background: #ffffff;
}

.input-text,
.select-box {
  height: 44px;
}

.message {
  min-height: 180px;
  resize: vertical;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  color: #324461;
}

.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.radio-group input {
  margin: 0;
}

.form-row-wide,
.form-action {
  grid-column: 1 / -1;
}

.form-action {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.submit-button {
  border: none;
  border-radius: 999px;
  min-width: 220px;
  height: 50px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #ffffff;
  background: linear-gradient(135deg, #1f4fd6, #2f75f5);
  box-shadow: 0 10px 18px rgba(16, 56, 115, 0.22);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.submit-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(16, 56, 115, 0.28);
}

.contact-complete-page {
  min-height: 52vh;
  display: grid;
  align-content: center;
}

.contact-complete-card {
  text-align: center;
  padding: 42px 30px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-complete-kicker {
  margin: 0;
  color: #4f6fa8;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-complete-card h1 {
  margin: 8px 0 12px;
  color: #173f84;
  font-size: 40px;
  line-height: 1.2;
}

.contact-complete-card p {
  margin: 0;
  color: #445574;
  line-height: 1.8;
}

.home-button {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-width: 220px;
  height: 50px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #1f4fd6, #2f75f5);
  box-shadow: 0 10px 18px rgba(16, 56, 115, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(16, 56, 115, 0.28);
}

@media (max-width: 900px) {
  .contact-page {
    padding: 14px 0 36px;
  }

  .contact-hero,
  .contact-section {
    padding: 0 10px;
  }

  .contact-hero {
    margin-bottom: 18px;
  }

  .contact-hero-inner {
    min-height: 220px;
    border-radius: 20px;
    padding: 22px 20px;
    background-position: center;
  }

  .contact-hero h1 {
    margin: 4px 0;
    font-size: clamp(2rem, 9vw, 2.6rem);
    line-height: 1.08;
  }

  .contact-hero p {
    font-size: clamp(1.02rem, 4.6vw, 1.24rem);
    line-height: 1.35;
  }

  .contact-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.2;
  }

  .contact-heading p {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .contact-card,
  .form-card {
    padding: 16px 14px;
  }

  .phone-number {
    font-size: clamp(2rem, 10vw, 2.5rem);
  }

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

  .form-row-wide,
  .form-action {
    grid-column: auto;
  }

  .message {
    min-height: 160px;
  }

  .submit-button {
    width: 100%;
    min-width: 0;
    height: 48px;
  }

  .contact-complete-card {
    padding: 28px 16px;
  }

  .contact-complete-card h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.2;
  }

  .home-button {
    width: 100%;
    min-width: 0;
    height: 48px;
  }
}
