.contact-page {
  --contact-blue: #3978ee;
  --contact-blue-dark: #1f55ba;
  --contact-navy: #17365f;
  --contact-orange: #ff7a1f;
  --contact-amber: #ffb400;
  --contact-canvas: #eaf1ff;
  --contact-border: #d7e3fb;
  --contact-muted: #687b98;
  position: relative;
  isolation: isolate;
  min-height: 80vh;
  padding: clamp(7.5rem, 11vw, 10rem) 1rem clamp(4rem, 7vw, 7rem);
  overflow: hidden;
  background: linear-gradient(rgba(255,255,255,.5), rgba(255,255,255,.12)), var(--contact-canvas);
  color: var(--contact-navy);
  font-family: ERPx, ERPxFaNum, sans-serif;
  font-size: 16px !important;
}

.contact-page::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 5rem 0 auto;
  height: 26rem;
  opacity: .42;
  background-image: radial-gradient(circle, rgba(58,120,238,.22) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, #000, transparent);
}

.contact-page__glow {
  position: absolute;
  z-index: -1;
  width: 25rem;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(10px);
  opacity: .28;
}
.contact-page__glow--top { top: 6rem; right: -10rem; background: #77a9ff; }
.contact-page__glow--bottom { bottom: -12rem; left: -8rem; background: #ffbc55; }

.contact-shell {
  width: min(100%, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr);
  direction: rtl;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 75px rgba(38,74,136,.16);
}

.contact-intro {
  position: relative;
  min-height: 100%;
  padding: clamp(2.25rem,5vw,4.5rem);
  overflow: hidden;
  background: radial-gradient(circle at 15% 15%, rgba(255,255,255,.22), transparent 32%), linear-gradient(145deg,var(--contact-blue),var(--contact-blue-dark));
  color: #fff;
}

.contact-intro::before,
.contact-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%;
}
.contact-intro::before { width: 24rem; height: 24rem; left: -14rem; bottom: -9rem; }
.contact-intro::after { width: 16rem; height: 16rem; left: -8rem; bottom: -5rem; }

.contact-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .35rem .9rem;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: .82rem;
  font-weight: 700;
}

.contact-intro h1 {
  max-width: 14ch;
  margin: 1.35rem 0 1rem;
  color: #fff;
  font-size: clamp(1.85rem,3vw,2.75rem);
  font-weight: 800;
  line-height: 1.55;
}

.contact-intro__lead {
  max-width: 43ch;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  line-height: 2;
}

.contact-benefits { display: grid; gap: .8rem; margin-top: 2rem; }
.contact-benefit { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.94); font-size: .9rem; font-weight: 600; }
.contact-benefit__icon { display: inline-grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; font-size: .72rem; }

.contact-phone {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: .85rem;
  width: fit-content;
  min-height: 58px;
  margin-top: 2.35rem;
  padding: .65rem .75rem .65rem 1.1rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  background: rgba(10,45,111,.28);
  color: #fff;
  transition: transform 180ms ease, background-color 180ms ease;
}
.contact-phone:hover { transform: translateY(-2px); background: rgba(10,45,111,.42); color: #fff; }
.contact-phone__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg,var(--contact-orange),var(--contact-amber)); }
.contact-phone span:last-child { display: grid; gap: .15rem; }
.contact-phone small { color: rgba(255,255,255,.7); font-size: .72rem; }
.contact-phone strong { color: #fff; font-size: 1rem; letter-spacing: .02em; }

.contact-intro__butterfly {
  position: absolute;
  left: clamp(1.5rem,3vw,3rem);
  bottom: clamp(1.5rem,3vw,2.5rem);
  width: 82px;
  transform: rotate(-8deg);
  filter: drop-shadow(0 10px 15px rgba(8,38,94,.2));
}

.contact-form-panel { padding: clamp(2rem,4vw,4rem); background: #fff; }
.contact-form-heading { display: flex; align-items: center; gap: .9rem; margin-bottom: 2rem; }
.contact-form-heading__icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 16px; background: #edf4ff; color: var(--contact-blue); font-size: 1.25rem; }
.contact-form-heading h2 { margin: 0 0 .25rem; color: var(--contact-navy); font-size: clamp(1.35rem,2vw,1.75rem); font-weight: 800; }
.contact-form-heading p { margin: 0; color: var(--contact-muted); font-size: .86rem; }

.contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.15rem; }
.contact-field { min-width: 0; }
.contact-field--wide,
.contact-submit { grid-column: 1 / -1; }
.contact-field label { display: inline-block; margin-bottom: .5rem; color: #29476e; font-size: .83rem; font-weight: 700; }
.contact-field label span { color: #8797ad; font-weight: 500; }
.contact-input-wrap { position: relative; }
.contact-input-wrap > span { position: absolute; top: 50%; right: 1rem; z-index: 1; transform: translateY(-50%); color: #8296b5; font-size: .9rem; pointer-events: none; }
.contact-input-wrap--textarea > span { top: 1.1rem; transform: none; }

.contact-input-wrap input,
.contact-input-wrap textarea {
  width: 100%;
  border: 1px solid var(--contact-border);
  border-radius: 13px;
  outline: 0;
  background: #f8faff;
  color: #203c62;
  font: inherit;
  font-size: .9rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}
.contact-input-wrap input { min-height: 50px; padding: .75rem 2.75rem .75rem .9rem; }
.contact-input-wrap input[dir="ltr"] { padding-right: 2.75rem; text-align: right; }
.contact-input-wrap textarea { min-height: 118px; resize: vertical; padding: .9rem 2.75rem .9rem .9rem; line-height: 1.8; }
.contact-input-wrap input::placeholder,
.contact-input-wrap textarea::placeholder { color: #a3b0c3; }
.contact-input-wrap input:hover,
.contact-input-wrap textarea:hover { border-color: #b7caf0; }
.contact-input-wrap input:focus,
.contact-input-wrap textarea:focus { border-color: var(--contact-blue); background: #fff; box-shadow: 0 0 0 4px rgba(57,120,238,.12); }
.contact-field.has-error .contact-input-wrap input,
.contact-field.has-error .contact-input-wrap textarea { border-color: #d94757; background: #fff8f8; box-shadow: 0 0 0 3px rgba(217,71,87,.08); }

.contact-field__help,
.contact-field__error { display: block; margin: .4rem 0 0; font-size: .72rem; line-height: 1.7; }
.contact-field__help { color: #7e8ea5; }
.contact-field__error { color: #b72f3e; font-weight: 600; }
.contact-field__error[hidden],
.contact-form-status[hidden] { display: none !important; }

.contact-form-status { margin-bottom: 1.25rem; padding: .8rem 1rem; border-radius: 12px; font-size: .82rem; font-weight: 700; line-height: 1.8; }
.contact-form-status.is-success { border: 1px solid #a3dfbc; background: #edfaf2; color: #17623a; }
.contact-form-status.is-error { border: 1px solid #f0b0b8; background: #fff1f2; color: #9c2f3c; }

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 52px;
  margin-top: .25rem;
  padding: .85rem 1.5rem;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(112deg,var(--contact-orange),var(--contact-amber));
  box-shadow: 0 12px 24px rgba(255,132,24,.24);
  color: #fff;
  font: inherit;
  font-size: .92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}
.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(255,132,24,.3); filter: saturate(1.08); }
.contact-submit:focus-visible,
.contact-phone:focus-visible { outline: 3px solid rgba(255,139,32,.5); outline-offset: 3px; }
.contact-submit:disabled { cursor: wait; opacity: .72; transform: none; }
.contact-submit.is-loading .fa-paper-plane { animation: contact-send-pulse 850ms ease-in-out infinite alternate; }

@keyframes contact-send-pulse { to { transform: translateX(-5px); opacity: .45; } }

@media (max-width: 899.5px) {
  .contact-shell { grid-template-columns: 1fr; max-width: 680px; }
  .contact-intro { min-height: auto; padding: 42px; }
  .contact-intro__eyebrow { min-height: 36px; padding: 6px 14px; font-size: 13px; }
  .contact-intro h1 { max-width: 18ch; margin: 18px 0 12px; font-size: 34px; line-height: 1.5; }
  .contact-intro__lead { max-width: 52ch; font-size: 15px; line-height: 2; }
  .contact-benefits { gap: 12px; margin-top: 22px; }
  .contact-benefit { gap: 10px; font-size: 14px; }
  .contact-benefit__icon { flex-basis: 30px; width: 30px; height: 30px; font-size: 11px; }
  .contact-phone { min-height: 60px; margin-top: 24px; padding: 8px 10px 8px 16px; }
  .contact-phone small { font-size: 12px; }
  .contact-phone strong { font-size: 16px; }
  .contact-intro__butterfly { width: 70px; }

  .contact-form-panel { padding: 40px; }
  .contact-form-heading { gap: 14px; margin-bottom: 28px; }
  .contact-form-heading h2 { font-size: 25px; }
  .contact-form-heading p { font-size: 14px; }
  .contact-field label { margin-bottom: 8px; font-size: 14px; }
  .contact-input-wrap input,
  .contact-input-wrap textarea { font-size: 15px; }
  .contact-field__help,
  .contact-field__error { font-size: 12px; }
  .contact-submit { min-height: 54px; font-size: 15px; }
}

@media (max-width: 575.5px) {
  .contact-page { padding: 6.5rem .75rem 3.5rem; }
  .contact-shell { border-radius: 22px; }
  .contact-intro,
  .contact-form-panel { padding: 24px; }
  .contact-intro h1 { max-width: 16ch; font-size: 27px; line-height: 1.55; }
  .contact-intro__lead { font-size: 14px; }
  .contact-benefit { font-size: 13px; }
  .contact-form-heading h2 { font-size: 22px; }
  .contact-intro__butterfly { display: none; }
  .contact-form { grid-template-columns: 1fr; }
  .contact-field,
  .contact-field--wide,
  .contact-submit { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-phone,
  .contact-submit,
  .contact-input-wrap input,
  .contact-input-wrap textarea { transition: none; }
  .contact-submit.is-loading .fa-paper-plane { animation: none; }
}
