/* ==============================
  Contact Page
============================== */

.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 92px;
  background: #f7fbff url("images/contact-hero-bg.webp") 62% center / cover no-repeat;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(247, 251, 255, 0.66) 0%,
      rgba(247, 251, 255, 0.42) 46%,
      rgba(247, 251, 255, 0.08) 100%
    );
}

.contact-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.contact-hero-copy {
  position: relative;
  z-index: 1;
}

.contact-hero-kicker {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 16px;
  color: #ffffff;
  background: #0089e8;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.contact-hero h1 {
  margin-bottom: 22px;
  color: #001b3f;
  font-size: clamp(38px, 5vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.contact-hero-lead {
  width: min(620px, 100%);
  margin: 0;
  color: #334155;
  font-size: 16px;
  line-height: 1.95;
  font-weight: 800;
}

.contact-hero-visual {
  min-height: 360px;
  background: url("images/contact-consultation.png") center center / contain no-repeat;
  border: none;
  border-radius: 24px;
  box-shadow: none;
}

.contact-method-section {
  padding: 86px 0;
  background: #ffffff;
}

.contact-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-method-card {
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: none;
  border-radius: 18px;
  box-shadow: none;
}

.contact-method-card > svg,
.contact-method-card > i,
.contact-method-card > img,
.contact-method-card > .contact-method-icon {
  display: none;
}

.contact-method-card h3 {
  margin-bottom: 14px;
  color: #0b1f59;
  font-size: 21px;
}

.contact-method-card p {
  margin-bottom: 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.85;
  font-weight: 700;
}

.contact-method-card strong {
  display: block;
  margin-top: 18px;
  color: #e60021;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 900;
}

.contact-method-card small {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.contact-method-link {
  width: fit-content;
  display: inline-flex;
  margin-top: auto;
  padding: 10px 18px;
  color: #ffffff;
  background: #0089e8;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.contact-support-section {
  padding: 86px 0;
  background: #f5f7fa;
}

.contact-support-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.contact-support-image {
  width: min(420px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  background: url("images/contact-support-area.webp") center center / cover no-repeat;
  border: none;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: none;
}

.contact-support-copy {
  padding: 34px 38px;
  background: #ffffff;
  border: none;
  border-radius: 20px;
  box-shadow: none;
}

.contact-support-copy h2 {
  margin-bottom: 22px;
  text-align: left;
}

.contact-check-list {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.contact-check-list li {
  position: relative;
  margin-bottom: 10px;
  padding: 12px 14px 12px 42px;
  background: #f7fbff;
  border: none;
  border-radius: 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
}

.contact-check-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 12px;
  color: #0089e8;
  font-weight: 900;
}

.contact-support-copy p:last-child {
  margin-bottom: 0;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.contact-form-section {
  padding: 92px 0 104px;
  background: #ffffff;
}

.contact-form-lead {
  width: min(720px, 100%);
  margin: 0 auto;
  color: #475569;
  font-size: 15px;
  font-weight: 700;
}

.contact-form {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 42px;
  background: #ffffff;
  border: none;
  border-radius: 22px;
  box-shadow: none;
}

.contact-form-row {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  align-items: center;
}

.contact-form-row-full {
  align-items: start;
}

.contact-form-row label {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.contact-form-row label span {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  color: #ffffff;
  background: #e60021;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: #111827;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.6;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(0, 137, 232, 0.18);
  border-color: #0089e8;
}

.contact-hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-privacy-box {
  margin-top: 28px;
  padding: 24px;
  background: #f7fbff;
  border: none;
  border-radius: 14px;
}

.contact-privacy-box p {
  margin-bottom: 14px;
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
}

.contact-privacy-check {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

.contact-privacy-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.contact-security-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: #fff8d8;
  border: none;
  border-radius: 10px;
}

.contact-security-note p {
  margin: 0;
  color: #5f4b00;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 800;
}

.contact-form-submit {
  margin-top: 30px;
  text-align: center;
}

.contact-form-submit .button {
  border: none;
}

@media (max-width: 900px) {
  .contact-hero {
    min-height: 560px;
    padding: 64px 0 72px;
    background: #f7fbff url("images/contact-hero-bg.webp") right -24px top -36px / 124% auto no-repeat;
  }

  .contact-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 255, 0.82) 0%,
        rgba(247, 251, 255, 0.58) 32%,
        rgba(247, 251, 255, 0.28) 64%,
        rgba(247, 251, 255, 0.10) 100%
      );
  }

  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact-hero-visual {
    display: none;
  }

  .contact-method-grid,
  .contact-support-grid {
    grid-template-columns: 1fr;
  }

  .contact-method-section,
  .contact-support-section {
    padding: 72px 0;
  }

  .contact-form-section {
    padding: 76px 0 86px;
  }

  .contact-form {
    padding: 30px;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .contact-method-card strong {
    font-size: 31px;
  }

  .contact-method-link {
    padding: 13px 24px;
    font-size: 16px;
  }
}

@media (max-width: 520px) {
  .contact-hero {
    min-height: 560px;
    padding: 44px 0 28px;
    background: #f7fbff url("images/contact-hero-bg.webp") right -16px top 168px / 134% auto no-repeat;
  }

  .contact-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 255, 0.92) 0%,
        rgba(247, 251, 255, 0.84) 28%,
        rgba(247, 251, 255, 0.46) 52%,
        rgba(247, 251, 255, 0.16) 78%,
        rgba(247, 251, 255, 0.02) 100%
      );
  }

  .contact-hero h1 {
    font-size: 34px;
  }

  .contact-hero-lead {
    font-size: 14px;
  }

  .contact-method-card,
  .contact-support-copy,
  .contact-form {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .contact-support-image {
    width: min(320px, 100%);
    aspect-ratio: 4 / 5;
    border-radius: 16px;
  }

  .contact-method-card strong {
    font-size: 30px;
  }

  .contact-method-link {
    padding: 13px 24px;
    font-size: 16px;
  }
}