/* ===== Design tokens ===== */
@font-face {
  font-family: Vazirmatn;
  src: url(/assets/fonts/persianFonts/Vazirmatn/Vazirmatn-Regular.woff2);
}

:root {
  --navy-900: #0b1e3a;
  --navy-800: #123057;
  --navy-700: #1b4276;
  --gold-600: #b8862c;
  --gold-500: #cf9d3f;
  --gold-400: #e3bc63;
  --ink: #16233b;
  --ink-soft: #5b6b83;
  --line: #e3e8ef;
  --bg: #f2f4f8;
  --card: #ffffff;
  --radius-lg: 16px;
  --radius-md: 10px;
  --shadow-card: 0 8px 24px -12px rgba(11, 30, 58, 0.18);
  --shadow-soft: 0 2px 10px -4px rgba(11, 30, 58, 0.12);
  --font: "Vazirmatn", "Tahoma", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
}

button {
  font-family: var(--font);
}

input,
select,
textarea {
  font-family: var(--font);
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 380px at 15% -10%, rgba(227, 188, 99, 0.10), transparent 60%),
    linear-gradient(120deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  padding: 34px clamp(20px, 4vw, 64px) 46px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255, 255, 255, 0.25) 1px, transparent 1px),
    radial-gradient(1px 1px at 40% 60%, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    radial-gradient(1px 1px at 70% 20%, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    radial-gradient(1px 1px at 85% 55%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    radial-gradient(1px 1px at 55% 80%, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 220px 220px;
  opacity: 0.9;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  order: 2;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark img {
  max-width: 200px;
  max-height: 50px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name-top {
  font-family: "Georgia", serif;
  letter-spacing: 2px;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

.brand-name-bottom {
  letter-spacing: 2px;
  font-size: 9px;
  color: var(--gold-400);
  font-weight: 600;
}

.hero-text {
  order: 1;
  max-width: 640px;
  text-align: right;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
}

.hero-sub-inline {
  color: var(--gold-400);
  font-weight: 700;
}

.hero-text p {
  color: #cdd8e8;
  font-size: 14.5px;
  max-width: 650px;
  margin-inline-start: auto;
}

.hero-wave {
  display: block;
  width: 100%;
  height: 32px;
  position: relative;
  margin-top: -4px;
}

.hero-wave path {
  fill: var(--bg);
}

/* ===== Layout ===== */
.form-wrap {
  max-width: 1180px;
  margin: -14px auto 60px;
  padding: 0 clamp(16px, 4vw, 32px);
  position: relative;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  margin-bottom: 22px;
  overflow: hidden;
}

.card-fields {
  order: 2;
  flex: 1 1 auto;
  padding: 28px clamp(18px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.card-aside {
  order: 1;
  flex: 0 0 190px;
  background: linear-gradient(180deg, #f7f9fc, #eef1f6);
  border-inline-start: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 24px 14px;
}

.step-num {
  font-size: 30px;
  font-weight: 800;
  color: #d7dce4;
  font-family: Georgia, serif;
  line-height: 1;
}

.step-icon {
  font-size: 26px;
  margin: 2px 0 6px;
}

.card-aside h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.step-en {
  font-size: 11px;
  color: var(--ink-soft);
  border-top: 2px solid var(--gold-500);
  padding-top: 6px;
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ===== Fields ===== */
.field-grid {
  display: grid;
  gap: 16px;
}

.cols-1 {
  grid-template-columns: 1fr;
}

.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.cols-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field.required label::after {
  content: " *";
  color: var(--gold-600);
}

.label-en {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 11.5px;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon input,
.input-icon select {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
}

.destinationCountry {
  width: 100%;
  padding: 11px 14px 11px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  margin: 0;
}

#email {
  direction: ltr;
}

.input-icon input:focus,
.input-icon select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(207, 157, 63, 0.15);
  background: #fff;
}

.input-icon input::placeholder {
  color: #9aa6b8;
}

.input-icon .icon {
  position: absolute;
  left: 12px;
  font-size: 13px;
  color: #9aa6b8;
  pointer-events: none;
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 14px;
  resize: vertical;
  background: #fbfcfe;
  color: var(--ink);
}

textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(207, 157, 63, 0.15);
  background: #fff;
  outline: none;
}

/* ===== Pill group (country of origin) ===== */
.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fbfcfe;
  cursor: pointer;
  font-size: 12.5px;
  transition: border-color .15s, background .15s;
}

.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.pill:has(input:checked) {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, #fff6e6, #fdf1da);
}

.pill-icon {
  font-size: 15px;
}

.pill-text small {
  color: var(--ink-soft);
  font-weight: 400;
}

/* ===== Services (step 3) ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.service-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  cursor: pointer;
  font-size: 12px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.service-box input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.service-box:has(input:checked) {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, #fff8ec, #fdf1da);
  box-shadow: 0 4px 14px -6px rgba(207, 157, 63, 0.4);
}

.service-icon {
  font-size: 22px;
}

.service-title {
  font-weight: 600;
  color: var(--ink);
}

.service-fa {
  color: var(--ink-soft);
  font-size: 11px;
}

.info-panel {
  background: var(--navy-900);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: grid;
  gap: 40px;
  grid-auto-flow: column;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item strong {
  color: var(--gold-400);
  font-size: 12px;
}

.info-item span {
  color: #c9d3e3;
  font-size: 11.5px;
  line-height: 1.5;
}

.cont-image {
  width: 18px;
}

/* ===== Radio row (delivery window) ===== */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fbfcfe;
  cursor: pointer;
  font-size: 12.5px;
  text-align: center;
  flex: 1 1 150px;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.radio-pill:has(input:checked) {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, #fff6e6, #fdf1da);
}

.radio-main {
  font-weight: 600;
  color: var(--ink);
}

.radio-main small {
  font-weight: 400;
  color: var(--ink-soft);
}

.radio-en {
  font-size: 10.5px;
  color: var(--ink-soft);
}

.radio-pill-date {
  flex-direction: row;
  gap: 8px;
  flex: 1 1 200px;
}

.date-inline {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  width: 100px;
  background: #fff;
  pointer-events: auto;
  z-index: 9999;
}

/* ===== Incoterm row ===== */
.incoterm-row {
  align-items: end;
}

.incoterm-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}

.chip:hover {
  border-color: var(--gold-500);
}

.chip-active {
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  border-color: var(--gold-600);
  color: #fff;
}

.chip-help {
  color: var(--navy-800);
  border-color: var(--navy-800);
  background: #fff;
}

/* ===== Dropzone ===== */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius-md);
  padding: 26px 16px;
  cursor: pointer;
  background: #fbfcfe;
  height: calc(100% - 26px);
  transition: border-color .15s, background .15s;
}

.dropzone:hover {
  border-color: var(--gold-500);
  background: #fffaf0;
}

.dropzone-active {
  border-color: var(--gold-500);
  background: #fffaf0;
}

.dropzone-icon {
  font-size: 22px;
}

.dropzone-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.dropzone-sub {
  font-size: 11px;
  color: var(--ink-soft);
}

.dropzone-formats {
  font-size: 10.5px;
  color: #9aa6b8;
}

.file-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.9em;
}

.file-remove {
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-weight: bold;
  padding: 2px 6px;
}

.file-remove:hover {
  background: #fdecea;
  border-radius: 4px;
}

.file-error {
  font-size: 12px;
  color: #c0392b;
  margin: 8px 0 0;
}

/* ===== Submit ===== */
.submit-btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  color: #fff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(184, 134, 44, 0.55);
  transition: transform .12s, box-shadow .12s;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(184, 134, 44, 0.6);
}

.submit-btn small {
  font-weight: 400;
  opacity: 0.85;
  font-size: 11px;
}

.submit-icon {
  font-size: 16px;
}

/* ===== Trust bar ===== */
.trust-bar {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.trust-icon {
  font-size: 20px;
}

.trust-item strong {
  font-size: 12.5px;
  color: var(--ink);
}

.trust-item span {
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.5;
}


/* ===== Responsive ===== */
@media (max-width: 900px) {
  .cols-3 {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-panel {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: row;
  }

  .incoterm-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .card {
    flex-direction: column;
  }

  .card-fields {
    order: 2;
  }

  .card-aside {
    order: 1;
    flex-direction: row;
    justify-content: flex-start;
    border-inline-start: none;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px;
    gap: 10px;
  }

  .step-icon {
    margin: 0;
  }

  .step-en {
    border-top: none;
    border-inline-start: 2px solid var(--gold-500);
    padding-top: 0;
    padding-inline-start: 8px;
    margin-top: 0;
    margin-inline-start: 4px;
  }

  .cols-2,
  .cols-3 {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-panel {
    grid-template-columns: 1fr;
  }

  .radio-row {
    flex-direction: column;
  }

  .radio-pill {
    flex: 1 1 1px;
  }

  .radio-pill-date {
    flex: 1 1 1px;
  }

  .trust-bar {
    grid-template-columns: 1fr 1fr;
  }

  .hero-inner {
    flex-direction: column;
    align-items: flex-end;
  }

  .hero-text {
    text-align: right;
  }
}