/* ==========================================================================
   INEVITRADE application form (self-contained stub) + success modal
   Matches landing: Inter, black #000, accent blue #068CEF, light #F5F8FA
   ========================================================================== */
:root {
  --af-accent: #068cef;
  --af-accent-dark: #0576c9;
  --af-ink: #0b0b0d;
  --af-muted: #6b7280;
  --af-line: #e3e8ef;
  --af-light: #f5f8fa;
  --af-ok: #12cd2b;
  --af-err: #ea1236;
}

.af-form {
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--af-line);
  border-radius: 15px;
  box-shadow: 0 18px 50px rgba(11, 11, 13, 0.08);
  padding: 34px 34px 30px;
  font-family: "Inter", "Noto Sans", system-ui, -apple-system, Arial, sans-serif;
  color: var(--af-ink);
  box-sizing: border-box;
}
.af-form *,
.af-form *::before,
.af-form *::after { box-sizing: border-box; }

/* progress */
.af-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.af-progress-track {
  flex: 1;
  height: 7px;
  background: var(--af-line);
  border-radius: 99px;
  overflow: hidden;
}
.af-progress-fill {
  height: 100%;
  width: 0;
  background: var(--af-accent);
  border-radius: 99px;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.af-progress-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--af-muted);
  white-space: nowrap;
}

/* step */
.af-step { display: none; animation: afFade 0.3s ease; }
.af-step.af-active { display: block; }
@keyframes afFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.af-q {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--af-ink);
}
.af-sub {
  font-size: 14px;
  color: var(--af-muted);
  margin: 0 0 20px;
}

/* option cards */
.af-options { display: flex; flex-direction: column; gap: 12px; }
.af-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1.5px solid var(--af-line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  user-select: none;
}
.af-option:hover { border-color: #b9c4d4; }
.af-option input { position: absolute; opacity: 0; pointer-events: none; }
.af-dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c3ccda;
  transition: border-color 0.15s;
  position: relative;
}
.af-option.af-selected {
  border-color: var(--af-accent);
  background: rgba(6, 140, 239, 0.06);
  box-shadow: 0 0 0 3px rgba(6, 140, 239, 0.1);
}
.af-option.af-selected .af-dot { border-color: var(--af-accent); }
.af-option.af-selected .af-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--af-accent);
}

/* contact fields */
.af-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.af-field { display: flex; flex-direction: column; gap: 6px; }
.af-field.af-full { grid-column: 1 / -1; }
.af-field label { font-size: 13px; font-weight: 600; color: #374151; }
.af-form .af-field input {
  width: 100% !important;
  padding: 13px 14px !important;
  border: 1.5px solid var(--af-line) !important;
  border-radius: 10px !important;
  font-size: 16px !important;
  font-family: inherit !important;
  color: var(--af-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
  margin: 0 !important;
  height: auto !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.af-field input::placeholder { color: #9aa4b2; }
.af-form .af-field input:focus {
  outline: none;
  border-color: var(--af-accent) !important;
  box-shadow: 0 0 0 3px rgba(6, 140, 239, 0.12) !important;
}
.af-form .af-field.af-invalid input { border-color: var(--af-err) !important; }
.af-field .af-error {
  font-size: 12px;
  color: var(--af-err);
  min-height: 0;
  display: none;
}
.af-field.af-invalid .af-error { display: block; }

/* nav buttons */
.af-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}
/* !important throughout: the scraped theme styles bare <button> with
   var(--e-global-color-accent)!important, which otherwise bleeds in. */
.af-form .af-btn,
.af-modal .af-btn {
  appearance: none !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  padding: 14px 26px !important;
  margin: 0 !important;
  width: auto !important;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.05s, opacity 0.15s;
}
.af-btn:active { transform: translateY(1px); }
.af-form .af-btn-primary,
.af-modal .af-btn-primary { background: var(--af-accent) !important; color: #fff !important; }
.af-form .af-btn-primary:hover,
.af-modal .af-btn-primary:hover { background: var(--af-accent-dark) !important; }
.af-btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.af-form .af-btn-ghost {
  background: transparent !important;
  color: var(--af-muted) !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
}
.af-form .af-btn-ghost:hover { color: var(--af-ink) !important; }
.af-btn-ghost[hidden] { visibility: hidden; }
.af-btn-primary.af-wide { margin-left: auto; }

.af-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--af-muted);
  text-align: center;
}

/* ---------------- success modal ---------------- */
.af-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 20, 0.62);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.af-modal-overlay.af-open { opacity: 1; visibility: visible; }
.af-modal {
  background: #fff;
  border-radius: 18px;
  max-width: 460px;
  width: 100%;
  padding: 40px 34px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: "Inter", "Noto Sans", system-ui, -apple-system, Arial, sans-serif;
}
.af-modal-overlay.af-open .af-modal { transform: translateY(0) scale(1); }
.af-modal-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(18, 205, 43, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.af-modal-check svg { width: 40px; height: 40px; stroke: var(--af-ok); }
.af-modal h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--af-ink);
}
.af-modal p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--af-muted);
  margin: 0 0 26px;
}
.af-modal .af-btn-primary { width: 100%; }

@media (max-width: 560px) {
  .af-form { padding: 26px 20px 24px; border-radius: 12px; }
  .af-q { font-size: 20px; }
  .af-fields { grid-template-columns: 1fr; }
}
