:root {
  --afs-navy: #061222;
  --afs-navy-2: #0b182a;
  --afs-card: rgba(13, 29, 47, 0.94);
  --afs-teal: #00a6b2;
  --afs-cyan: #16d5dc;
  --afs-text: #f4f8ff;
  --afs-muted: #9fb3c8;
  --afs-border: rgba(41, 113, 132, 0.38);
  --afs-danger: #ff8a8a;
}

.afs-shell,
.afs-shell * { box-sizing: border-box; }

.afs-shell {
  position: relative;
  z-index: 50;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: max(760px, 100svh);
  padding: clamp(24px, 5vw, 72px) max(18px, env(safe-area-inset-right)) clamp(24px, 5vw, 72px) max(18px, env(safe-area-inset-left));
  color: var(--afs-text);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 166, 178, .16), transparent 29%),
    radial-gradient(circle at 12% 92%, rgba(22, 213, 220, .08), transparent 32%),
    var(--afs-navy);
  font-family: IRANSansXFaNum, IRANSansX, iransansx, Tahoma, Arial, sans-serif;
  line-height: 1.8;
}

/* The survey is a focused, standalone experience. The theme newsletter can
   add a body scroll lock even when its popup is hidden, so keep this page
   independently scrollable and remove the surrounding site chrome. */
html:has(body.page-id-7207) {
  margin-top: 0 !important;
  overflow-y: auto !important;
}

body.page-id-7207,
body.page-id-7207.aranik-newsletter-popup-open {
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body.page-id-7207 #aranik-newsletter-popup,
body.page-id-7207 .elementor-location-header,
body.page-id-7207 .elementor-location-footer,
body.page-id-7207 .aranik-app-footer {
  display: none !important;
}

.afs-grid {
  position: absolute;
  inset: 0;
  z-index: -3;
  opacity: .15;
  background-image:
    linear-gradient(rgba(22, 213, 220, .16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 213, 220, .16) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.afs-ambient {
  position: absolute;
  z-index: -2;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .2;
  background: var(--afs-cyan);
}

.afs-ambient-a { top: -140px; right: -100px; }
.afs-ambient-b { bottom: -180px; left: -80px; opacity: .12; }

.afs-card {
  width: min(100%, 760px);
  min-height: 640px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 48px);
  border: 1px solid var(--afs-border);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(19, 35, 56, .97), rgba(7, 20, 38, .97));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3), inset 0 1px rgba(255, 255, 255, .04);
  overflow-wrap: anywhere;
}

.afs-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.afs-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--afs-text) !important; text-decoration: none !important; }
.afs-logo { display: grid; width: 40px; height: 40px; place-items: center; color: var(--afs-teal); }
.afs-logo svg { width: 100%; height: 100%; }
.afs-brand > span:last-child { display: flex; flex-direction: column; line-height: 1; direction: ltr; text-align: left; }
.afs-brand strong { font: 700 20px/1 Arial, sans-serif; letter-spacing: -.5px; }
.afs-brand small { margin-top: 4px; color: var(--afs-muted); font: 9px/1 Arial, sans-serif; letter-spacing: .8px; text-transform: uppercase; }
.afs-time { padding: 6px 12px; border: 1px solid var(--afs-border); border-radius: 999px; color: var(--afs-muted); font-size: 12px; white-space: nowrap; }

.afs-intro { margin-top: clamp(32px, 6vw, 58px); }
.afs-eyebrow { display: block; margin-bottom: 8px; color: var(--afs-cyan); font-size: 13px; font-weight: 700; }
.afs-intro h1 { margin: 0 !important; color: var(--afs-text) !important; font-size: clamp(28px, 5vw, 46px) !important; line-height: 1.35 !important; letter-spacing: -.8px; }
.afs-intro p { max-width: 600px; margin: 12px 0 0; color: var(--afs-muted); font-size: 15px; }

.afs-progress { height: 5px; margin: 30px 0 38px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .07); }
.afs-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--afs-teal), var(--afs-cyan)); box-shadow: 0 0 16px rgba(22, 213, 220, .5); transition: width .35s ease; }

.afs-step { display: none; min-width: 0; margin: 0; padding: 0; border: 0; animation: afs-in .25s ease; }
.afs-step.is-active { display: block; }
.afs-step legend { width: 100%; margin: 0 0 20px; padding: 0; color: var(--afs-text); font-size: clamp(20px, 3vw, 27px); font-weight: 750; line-height: 1.55; }
.afs-helper { margin: -10px 0 18px; color: var(--afs-muted); font-size: 13px; }

.afs-option { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-height: 54px; margin: 0 0 10px; padding: 14px 16px; cursor: pointer; border: 1px solid rgba(82, 129, 149, .28); border-radius: 15px; background: rgba(255, 255, 255, .025); transition: border-color .18s, background .18s, transform .18s; -webkit-tap-highlight-color: transparent; }
.afs-option:hover { transform: translateY(-1px); border-color: rgba(22, 213, 220, .55); background: rgba(22, 213, 220, .045); }
.afs-option:has(input:checked) { border-color: var(--afs-teal); background: rgba(0, 166, 178, .11); box-shadow: inset 0 0 0 1px rgba(22, 213, 220, .14); }
.afs-option input { position: absolute; opacity: 0; pointer-events: none; }
.afs-option-mark { flex: 0 0 20px; width: 20px; height: 20px; border: 1.5px solid #59788d; border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; transition: .18s; }
.afs-option input[type="checkbox"] + .afs-option-mark { border-radius: 6px; }
.afs-option input:checked + .afs-option-mark { border-color: var(--afs-cyan); background: var(--afs-cyan); box-shadow: inset 0 0 0 4px var(--afs-navy-2); }
.afs-option-copy { display: flex; flex-direction: column; min-width: 0; }
.afs-option-copy strong { color: var(--afs-text); font-size: 14px; font-weight: 600; }
.afs-option-copy small { margin-top: 2px; color: var(--afs-muted); font-size: 12px; }

.afs-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.afs-scale label { cursor: pointer; text-align: center; }
.afs-scale input { position: absolute; opacity: 0; }
.afs-scale span { display: grid; height: 58px; place-items: center; border: 1px solid var(--afs-border); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--afs-text); font-size: 18px; font-weight: 700; transition: .18s; }
.afs-scale input:checked + span { border-color: var(--afs-cyan); background: rgba(0,166,178,.17); color: var(--afs-cyan); box-shadow: 0 0 22px rgba(0,166,178,.12); }
.afs-scale small { display: block; margin-top: 7px; color: var(--afs-muted); font-size: 10px; line-height: 1.4; }

.afs-text,
.afs-conditional input { width: 100% !important; margin: 0 !important; padding: 15px 16px !important; border: 1px solid var(--afs-border) !important; border-radius: 14px !important; outline: 0 !important; background: rgba(3, 13, 25, .6) !important; color: var(--afs-text) !important; font: inherit !important; box-shadow: none !important; transition: border-color .18s, box-shadow .18s; }
.afs-text:focus,
.afs-conditional input:focus { border-color: var(--afs-cyan) !important; box-shadow: 0 0 0 3px rgba(22, 213, 220, .08) !important; }
.afs-text::placeholder,
.afs-conditional input::placeholder { color: #668095; }
textarea.afs-text { min-height: 150px; resize: vertical; }

.afs-field-group { margin-bottom: 16px; }
.afs-field-group label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--afs-text); font-size: 13px; font-weight: 650; }
.afs-field-group label small { color: var(--afs-muted); font-size: 11px; font-weight: 500; }
.afs-field-group + .afs-helper { margin-top: 2px; }

.afs-conditional { margin-top: 18px; padding: 18px; border-right: 3px solid var(--afs-teal); border-radius: 12px; background: rgba(0, 166, 178, .07); }
.afs-conditional label { display: block; margin-bottom: 8px; color: var(--afs-text); font-size: 13px; font-weight: 600; }

.afs-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 30px; }
.afs-button { min-height: 50px; padding: 12px 24px; cursor: pointer; border: 0; border-radius: 13px; font: 700 14px/1.5 inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .18s, opacity .18s, box-shadow .18s; }
.afs-button:hover { transform: translateY(-1px); }
.afs-next,
.afs-submit { margin-right: auto; color: #032329; background: linear-gradient(135deg, var(--afs-cyan), #55e5df); box-shadow: 0 10px 28px rgba(0, 166, 178, .22); }
.afs-back { color: var(--afs-muted); background: rgba(255,255,255,.055); }
.afs-button[disabled] { cursor: wait; opacity: .6; }
.afs-submit i { display: none; width: 14px; height: 14px; margin-right: 8px; vertical-align: middle; border: 2px solid rgba(3,35,41,.3); border-top-color: #032329; border-radius: 50%; animation: afs-spin .7s linear infinite; }
.afs-submit.is-loading i { display: inline-block; }
.afs-error { min-height: 22px; margin-top: 15px; color: var(--afs-danger); font-size: 13px; }
.afs-hp { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

.afs-success { padding: 74px 0 30px; text-align: center; animation: afs-in .35s ease; }
.afs-success-icon { display: grid; width: 72px; height: 72px; margin: 0 auto 22px; place-items: center; border: 1px solid var(--afs-cyan); border-radius: 50%; color: var(--afs-cyan); background: rgba(22,213,220,.09); font-size: 32px; box-shadow: 0 0 42px rgba(22,213,220,.12); }
.afs-success h2 { margin: 0 0 10px !important; color: var(--afs-text) !important; font-size: 29px !important; }
.afs-success p { margin: 0 0 24px; color: var(--afs-muted); }
.afs-success a { display: inline-block; padding: 11px 18px; border: 1px solid var(--afs-border); border-radius: 12px; color: var(--afs-cyan) !important; text-decoration: none !important; }

@keyframes afs-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes afs-spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .afs-shell { padding-block: clamp(18px, 4vw, 38px); }
  .afs-card { width: min(100%, 720px); padding: clamp(22px, 5vw, 38px); border-radius: 22px; }
  .afs-intro { margin-top: 38px; }
  .afs-progress { margin: 26px 0 32px; }
}

@media (max-width: 640px) {
  .afs-shell { min-height: 100svh; padding: 0; overflow: hidden; }
  .afs-card { width: 100%; min-height: 100svh; padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border: 0; border-radius: 0; box-shadow: none; }
  .afs-header { gap: 10px; }
  .afs-logo { width: 34px; height: 34px; }
  .afs-brand strong { font-size: 18px; }
  .afs-time { padding: 5px 9px; font-size: 11px; }
  .afs-intro { margin-top: 28px; }
  .afs-intro h1 { font-size: clamp(27px, 9vw, 36px) !important; line-height: 1.45 !important; }
  .afs-intro p { margin-top: 9px; font-size: 14px; line-height: 1.9; }
  .afs-progress { margin: 21px 0 27px; }
  .afs-step legend { margin-bottom: 16px; font-size: clamp(20px, 6vw, 24px); }
  .afs-option { min-height: 56px; padding: 12px 13px; }
  .afs-option-copy strong { font-size: 13.5px; line-height: 1.75; }
  .afs-scale { gap: 5px; }
  .afs-scale span { height: 50px; border-radius: 11px; font-size: 16px; }
  .afs-scale small { font-size: 8px; }
  textarea.afs-text { min-height: 125px; }
  .afs-actions { position: fixed; z-index: 999999; right: 0; bottom: 0; left: 0; margin: 0; padding: 14px max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); border-top: 1px solid rgba(41, 113, 132, .25); background: rgba(7, 20, 38, .98); box-shadow: 0 -12px 32px rgba(0,0,0,.28); backdrop-filter: blur(12px); }
  .afs-button { flex: 1 1 0; min-width: 0; padding-inline: 14px; }
  .afs-next,
  .afs-submit { margin-right: 0; }
}

@media (max-width: 380px) {
  .afs-card { padding-inline: 13px; }
  .afs-brand > span:last-child { display: none; }
  .afs-time { font-size: 10px; }
  .afs-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
  .afs-scale span { height: 46px; }
  .afs-scale small { font-size: 7px; }
}

@media (max-height: 680px) and (min-width: 641px) {
  .afs-shell { padding-block: 20px; }
  .afs-card { min-height: 0; }
  .afs-intro { margin-top: 24px; }
  .afs-progress { margin: 20px 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .afs-shell *, .afs-shell *::before, .afs-shell *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

