.contact-page {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
}

.contact-page__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/solutions-bg.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}

.contact-page__bg::before,
.contact-page__bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 280px;
  pointer-events: none;
}

.contact-page__bg::before {
  top: 0;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.contact-page__bg::after {
  bottom: 0;
  background: linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.contact-page__content {
  position: relative;
  z-index: 1;
}

.contact-hero {
  padding: 160px 0 32px;
  text-align: center;
}

.contact-hero-title {
  margin: 0 auto 16px;
  max-width: 900px;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 98%;
  letter-spacing: 0;
  font-weight: 400;
}

.contact-hero-title__base {
  color: #585858;
}

.contact-hero-subtitle {
  margin: 0 auto;
  max-width: 640px;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  color: #585858;
}

.contact-main {
  padding: 24px 0 96px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-info {
  padding: 12px 8px 0;
}

.contact-intro {
  margin-bottom: 28px;
}

.contact-info-title {
  margin: 0 0 12px;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 28px;
  line-height: 1.2;
  font-weight: 500;
  color: #585858;
}

.contact-info-body {
  margin: 0;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 15px;
  line-height: 1.55;
  color: #7d7d7d;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-info-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 15px;
  line-height: 1.4;
  color: #585858;
}

.contact-info-list li > span:last-child,
.contact-info-list li > a {
  flex: 1;
  min-width: 0;
}

.contact-info-list a {
  color: #585858 !important;
  text-decoration: none !important;
}

.contact-info-list a:hover {
  color: #fb580c !important;
}

.contact-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(251, 88, 12, 0.1);
  color: #fb580c;
}

.contact-card {
  padding: 36px 32px;
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 31px;
  box-shadow: 0px 0px 7.29px 0px #00000040;
}

.contact-success {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 14px;
  line-height: 1.4;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-field label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: #585858;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #d9d4ce;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 15px;
  color: #585858;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  border-radius: 24px;
  min-height: 140px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: #ffa073;
  box-shadow: 0 0 0 3px rgba(251, 88, 12, 0.12);
}

.contact-error {
  margin: 6px 0 0;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 13px;
  color: #dc2626;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 4px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #fb580c 0%, #ffa073 100%);
  color: #ffffff;
  font-family: var(--font-primary, 'DM Sans', sans-serif);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.contact-submit:hover:not(:disabled) {
  opacity: 0.92;
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 991px) {
  .contact-layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    max-width: none;
    width: 100%;
    gap: 28px;
  }

  /* Let intro / list participate in parent order: intro → form → list */
  .contact-info {
    display: contents;
  }

  .contact-intro {
    order: 1;
    margin-bottom: 0;
    text-align: center;
  }

  .contact-card {
    order: 2;
    width: 100%;
  }

  .contact-info-list {
    order: 3;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
    align-items: stretch;
  }

  .contact-info-list li {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }

  .contact-info-icon {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  .contact-hero {
    padding: 120px 0 24px;
  }

  .contact-main {
    padding: 16px 0 64px;
  }

  .contact-card {
    padding: 28px 20px;
  }

  .contact-info-list {
    width: 100%;
    padding-inline: 8px;
  }
}
