/* Contact Us page */

.contact-hero {
  min-height: 560px;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: #050b1f url("../images/about-hero-bg.png") center right / auto 100% no-repeat;
  padding-bottom: 90px;
}
.contact-hero .work-hero-inner { min-height: auto; padding: 0; }
.contact-hero .work-hero-copy { padding: 40px 0 0; }
.contact-hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: var(--h1-hero-size);
  line-height: var(--h1-hero-lh);
  font-weight: 800;
  margin-bottom: 18px;
  text-wrap: balance;
}
.contact-hero h1 span {
  background: linear-gradient(90deg, #7b59ff 0%, #2d95ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.contact-hero .work-hero-text { max-width: 560px; margin-bottom: 30px; }
.contact-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.contact-body-wrap {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  border-radius: 32px 32px 0 0;
  background: var(--bg, #f6faff);
  padding-top: 8px;
}

.contact-page-grid {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 26px;
  align-items: start;
  scroll-margin-top: 20px;
}
.contact-page-grid .consultation-alert { grid-column: 1 / -1; }

.contact-form-panel,
.contact-info-panel {
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 14px;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 18px 48px rgba(34, 51, 100, .08);
}

.contact-panel-kicker { display: none; }
.contact-form-panel h2,
.contact-info-panel h2 {
  color: var(--text);
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  position: relative;
  padding-bottom: 14px;
}
.contact-form-panel h2:after,
.contact-info-panel h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  border-radius: 99px;
  background: var(--purple);
}
.contact-panel-intro { color: var(--muted); font-size: 13.5px; line-height: 1.6; margin: 14px 0 26px; }

.contact-form-new { display: grid; gap: 20px; }
.contact-form-new label { display: grid; gap: 8px; }
.contact-form-new label > span:first-child { color: var(--text); font-size: 13px; font-weight: 700; }
.contact-form-new label b { color: #ff1836; }
.contact-form-new input,
.contact-form-new select,
.contact-form-new textarea {
  width: 100%;
  height: 48px;
  border: 1px solid #dce5f3;
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  padding: 0 14px 0 42px;
  margin: 0;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form-new select { padding-left: 14px; }
.contact-form-new textarea { height: 108px; padding: 12px 14px; resize: vertical; }
.contact-form-new input:focus,
.contact-form-new select:focus,
.contact-form-new textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(112, 55, 239, .12);
}
.contact-form-new select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6c7894 50%), linear-gradient(135deg, #6c7894 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.field-icon { position: relative; display: block; }
.field-icon:before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 2px solid var(--purple);
  opacity: .55;
  pointer-events: none;
}

.phone-field { display: flex; align-items: stretch; border: 1px solid #dce5f3; border-radius: 7px; overflow: hidden; background: #fff; }
.phone-field:before { display: none; }
.phone-field .phone-code {
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  background: #f4f6fc;
  border-right: 1px solid #dce5f3;
}
.phone-field input {
  border: 0;
  border-radius: 0;
  padding-left: 12px;
  height: 46px;
}
.phone-field input:focus { box-shadow: none; }
.contact-form-new label:has(.phone-field):focus-within .phone-field {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(112, 55, 239, .12);
}

.field-error { display: none; color: #e0293f; font-size: 12px; font-weight: 600; }
.contact-form-new label.invalid .field-error { display: block; }
.contact-form-new label.invalid input,
.contact-form-new label.invalid select,
.contact-form-new label.invalid textarea,
.contact-form-new label.invalid .phone-field { border-color: #e0293f; }
.contact-form-new label.invalid input:focus,
.contact-form-new label.invalid select:focus,
.contact-form-new label.invalid textarea:focus { box-shadow: 0 0 0 4px rgba(224, 41, 63, .1); }

.contact-message-field textarea { padding-left: 14px; }

.contact-form-new .g-recaptcha { margin-top: 2px; }

.contact-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 4px; }
.contact-form-actions .btn.primary { min-width: 220px; }
.contact-form-actions .secure-note { color: var(--muted); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.contact-form-actions .secure-note:before { content: "\1F512"; font-size: 13px; }

.contact-info-row { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid #eef1f8; }
.contact-info-panel h2 + .contact-info-row { border-top: 0; padding-top: 6px; }
.contact-info-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; }
.contact-info-icon img { width: 20px; height: 20px; object-fit: contain; }
.contact-info-icon.purple { background: #efe4ff; }
.contact-info-icon.green { background: #e4f9e8; }
.contact-info-row h3 { color: var(--text); font-size: 15px; font-weight: 800; margin: 0 0 4px; }
.contact-info-row p { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: 0 0 8px; }
.contact-info-row > div > a { display: block; color: var(--text); font-size: 13.5px; font-weight: 700; margin-bottom: 2px; }
.contact-info-row > div > a:hover { color: var(--purple); }
.contact-info-hours { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.contact-info-hours img { width: 13px; height: 13px; object-fit: contain; opacity: .7; }

.contact-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #189a2f !important;
  background: #eafbec;
  border: 1px solid rgba(29, 177, 58, .32);
  border-radius: 7px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}
.contact-whatsapp-btn:hover { background: #dff6e2; }

.contact-support-note {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  background: #eefaf0;
  border: 1px solid #cdeed4;
  border-radius: 12px;
  padding: 16px;
}
.contact-support-note span { width: 44px; height: 44px; border-radius: 50%; background: #d9f2dd; display: grid; place-items: center; }
.contact-support-note img { width: 20px; height: 20px; object-fit: contain; }
.contact-support-note h3 { color: #1c6b2b; font-size: 14px; font-weight: 800; margin: 0 0 3px; }
.contact-support-note p { color: #2f6b3a; font-size: 12px; line-height: 1.5; margin: 0; }

.contact-faq {
  width: min(900px, calc(100% - 40px));
  margin: 20px auto 0;
  padding: 46px 0 10px;
  text-align: center;
}
.contact-faq h2 {
  color: var(--text);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 26px;
  position: relative;
  padding-bottom: 16px;
}
.contact-faq h2:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 46px;
  height: 3px;
  border-radius: 99px;
  background: var(--purple);
  transform: translateX(-50%);
}
.contact-faq-list { display: grid; gap: 12px; text-align: left; }
.contact-faq-list details {
  background: #fff;
  border: 1px solid #e3ebf7;
  border-radius: 10px;
  padding: 4px 20px;
}
.contact-faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
}
.contact-faq-list summary::-webkit-details-marker { display: none; }
.faq-q-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
}
.faq-caret { margin-left: auto; color: var(--muted); transition: transform .2s ease; }
.contact-faq-list details[open] .faq-caret { transform: rotate(180deg); }
.contact-faq-list details p { color: var(--muted); font-size: 13.5px; line-height: 1.7; margin: 0 0 18px 34px; }

.contact-cta-banner {
  width: min(1240px, calc(100% - 40px));
  margin: 46px auto 60px;
  border-radius: 16px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: #fff;
  background: radial-gradient(circle at 12% 20%, rgba(255,255,255,.16), transparent 30%), linear-gradient(112deg, #071848 0%, #1c5cff 55%, #6c2cff 120%);
}
.contact-cta-icon { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; }
.contact-cta-icon img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }
.contact-cta-banner > div { flex: 1 1 260px; min-width: 0; }
.contact-cta-banner h2 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; margin: 0 0 6px; }
.contact-cta-banner p { color: rgba(255,255,255,.86); font-size: 13.5px; margin: 0; }
.contact-cta-banner .btn.light { flex: 0 0 auto; }

@media (max-width: 900px) {
  .contact-page-grid { grid-template-columns: 1fr; }
  .contact-hero { background-position: 68% center; padding-bottom: 60px; }
}

@media (max-width: 640px) {
  .contact-body-wrap { border-radius: 22px 22px 0 0; margin-top: -40px; }
  .contact-cta-banner { flex-direction: column; align-items: flex-start; text-align: left; }
  .contact-cta-banner .btn.light { width: 100%; justify-content: center; }
  .contact-info-row { grid-template-columns: 40px 1fr; }
  .contact-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .contact-hero .hero-actions .btn { width: 100%; }
}
