@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-400.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/vazirmatn-800.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  --page-bg: #edf2f0;
  --surface: #ffffff;
  --field-bg: #f4f7f6;
  --ink: #0b1210;
  --green: #103f3a;
  --muted: #72847f;
  --border: #d8e1de;
  --brand: #18aaa5;
  --brand-hover: #11948f;
  --danger: #c94444;
  --success: #177163;
  --radius-lg: 30px;
  --radius-md: 15px;
  --shadow: 0 30px 80px rgba(28, 60, 53, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.75) 0 6%, transparent 20%),
    radial-gradient(circle at 90% 16%, rgba(195, 221, 214, 0.34) 0 8%, transparent 24%),
    linear-gradient(145deg, #f4f6f5 0%, var(--page-bg) 55%, #e6efec 100%);
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.contact-page {
  width: min(100%, 1480px);
  min-height: 100svh;
  margin-inline: auto;
  padding: clamp(54px, 6vw, 94px) clamp(18px, 4vw, 52px) 80px;
}

.hero-copy {
  max-width: 930px;
  margin: 0 auto clamp(34px, 4vw, 54px);
  text-align: center;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-hover);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.eyebrow::before,
.eyebrow::after {
  width: 28px;
  height: 1px;
  content: "";
  background: currentColor;
  opacity: 0.45;
}

.hero-copy h1 {
  max-width: 860px;
  margin: 13px auto 0;
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -1px;
}

.hero-copy p {
  max-width: 690px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 2;
}

.contact-card {
  direction: ltr;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  width: min(100%, 1260px);
  min-height: 610px;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(180, 199, 193, 0.72);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.form-panel {
  direction: rtl;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.97);
}

.form-heading {
  margin-bottom: 26px;
  text-align: right;
}

.form-heading h2 {
  margin: 7px 0 0;
  color: var(--green);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.7px;
}

.form-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

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

.name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  min-width: 0;
}

.field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field input,
.field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--green);
  background: var(--field-bg);
  caret-color: var(--brand-hover);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.field input {
  height: 57px;
  padding: 0 18px;
}

.field textarea {
  min-height: 118px;
  padding: 16px 18px;
  resize: vertical;
  line-height: 1.8;
}

.field input[dir="ltr"] {
  text-align: left;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #84948f;
  opacity: 1;
}

.field input:hover,
.field textarea:hover {
  border-color: #b6c8c2;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(24, 170, 165, 0.12);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(201, 68, 68, 0.1);
}

.field-error {
  display: block;
  min-height: 18px;
  margin: 5px 4px 0;
  color: var(--danger);
  font-size: 11px;
  line-height: 1.55;
}

.field-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.character-counter {
  flex: 0 0 auto;
  margin-top: 5px;
  color: #91a09c;
  font-size: 11px;
  direction: rtl;
}

.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 57px;
  margin-top: 2px;
  padding: 12px 20px;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(135deg, #20b7b1, #119a95);
  box-shadow: 0 12px 26px rgba(17, 154, 149, 0.2);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.submit-button::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,0.24) 48%, transparent 72%);
  transform: translateX(-120%);
  transition: transform 500ms ease;
}

.submit-button:hover {
  filter: saturate(1.08);
  box-shadow: 0 16px 32px rgba(17, 154, 149, 0.28);
  transform: translateY(-2px);
}

.submit-button:hover::before {
  transform: translateX(120%);
}

.submit-button:active {
  transform: translateY(0);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(24, 170, 165, 0.3);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.submit-button .arrow {
  font-family: Arial, sans-serif;
  font-size: 19px;
  line-height: 1;
  transition: transform 180ms ease;
}

.submit-button:hover .arrow {
  transform: translateX(-3px);
}

.button-loader {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.submit-button.is-loading .button-loader {
  display: block;
}

.submit-button.is-loading .arrow {
  display: none;
}

.form-status {
  min-height: 0;
  margin: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.7;
}

.form-status:not(:empty) {
  min-height: 24px;
  padding-top: 2px;
}

.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }

.image-panel {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 30%, rgba(55, 216, 204, 0.55), transparent 30%),
    linear-gradient(160deg, #123f3c 0%, #0c2927 100%);
}

.image-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), opacity 220ms ease;
}

.contact-card:hover .image-panel img {
  transform: scale(1.025);
}

.image-panel.is-fallback img {
  opacity: 0;
}

.image-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(4, 25, 23, 0.74) 0%, transparent 44%),
    linear-gradient(to left, rgba(8, 48, 44, 0.18), transparent 50%);
}

.visual-copy {
  position: absolute;
  z-index: 2;
  right: 38px;
  bottom: 38px;
  left: 38px;
  direction: rtl;
  color: #fff;
}

.visual-copy span {
  display: block;
  margin-bottom: 8px;
  color: #78ded8;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.visual-copy strong {
  display: block;
  max-width: 400px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.7;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }

  .form-panel {
    padding-inline: 30px;
  }
}

@media (max-width: 760px) {
  .contact-page {
    padding: 44px 16px 58px;
  }

  .hero-copy {
    margin-bottom: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(26px, 7vw, 34px);
    letter-spacing: -0.55px;
  }

  .hero-copy p {
    margin-top: 13px;
    font-size: 14px;
  }

  .contact-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 24px;
  }

  .form-panel {
    grid-row: 2;
    padding: 34px 22px 30px;
  }

  .image-panel {
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 1.65 / 1;
  }

  .image-panel img {
    object-position: center 38%;
  }

  .visual-copy {
    right: 24px;
    bottom: 22px;
    left: 24px;
  }

  .visual-copy strong {
    max-width: 360px;
    font-size: 20px;
  }
}

@media (max-width: 520px) {
  .contact-page {
    padding-inline: 11px;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 18px;
  }

  .hero-copy h1 {
    font-size: 25px;
    line-height: 1.55;
  }

  .contact-card {
    border-radius: 20px;
  }

  .image-panel {
    aspect-ratio: 1.25 / 1;
  }

  .name-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-panel {
    padding-inline: 16px;
  }

  .form-heading {
    text-align: center;
  }

  .form-heading h2 {
    font-size: 23px;
  }

  .visual-copy strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
