/* ظاهر: الهام‌گرفته از سبک سایت‌های مصرف هوشمند انرژی (گرادیان سبز-فیروزه‌ای، تأکید نارنجی، کارت‌های گرد) */
:root {
  --teal: #1b9aa0;
  --green: #05a350;
  --green-dark: #04823f;
  --orange: #f5a300;
  --cream: #fff6e0;
  --bg: #f3f7f6;
  --text: #1c2421;
  --muted: #62706a;
  --line: #dce6e2;
  --err: #c0392b;
  --ok: #1b7f3b;
  --shadow: 0 10px 30px rgba(8, 70, 60, .12);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Tahoma, "Segoe UI", Vazirmatn, sans-serif; line-height: 1.9; font-size: 15px;
}
.hidden { display: none !important; }

/* ---- بالای صفحه ---- */
.hero {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(170deg, var(--teal) 0%, var(--green) 100%);
  padding: 26px 18px 86px; border-radius: 0 0 34px 34px;
}
.hero-deco { position: absolute; background: rgba(255, 255, 255, .09); pointer-events: none; }
.hero-deco.d1 { width: 260px; height: 260px; top: -110px; left: -70px; border-radius: 50%; }
.hero-deco.d2 { width: 170px; height: 170px; bottom: -60px; right: -40px; border-radius: 50%; background: rgba(245, 163, 0, .16); }
.hero-deco.d3 { width: 150px; height: 150px; top: 36px; right: 8%; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: rgba(255, 255, 255, .07); }
.hero-in { position: relative; max-width: 520px; margin: 0 auto; }
.company {
  font-family: "B Titr", "BTitr", "B Titr Bold", "Titr", Tahoma, "Segoe UI", sans-serif;
  font-size: 26px; font-weight: bold; line-height: 1.6; margin-bottom: 4px;
}
h1 { margin: 6px 0 8px; font-size: 22px; line-height: 1.7; }
.accent { color: #ffd36b; }
.lead { margin: 0 auto 18px; font-size: 14px; opacity: .95; }
.steps { list-style: none; display: flex; justify-content: center; gap: 8px; padding: 0; margin: 0; }
.steps li {
  display: flex; align-items: center; gap: 6px; font-size: 12px;
  background: rgba(255, 255, 255, .14); border-radius: 20px; padding: 3px 10px 3px 12px; opacity: .75;
}
.steps li.on { background: #fff; color: var(--green-dark); opacity: 1; font-weight: bold; }
.steps b {
  display: inline-block; width: 20px; height: 20px; line-height: 20px; border-radius: 50%; text-align: center;
  background: rgba(255, 255, 255, .25); font-size: 12px;
}
.steps li.on b { background: var(--orange); color: #fff; }

/* ---- فرم ---- */
main { max-width: 480px; margin: -58px auto 0; padding: 0 16px 36px; position: relative; }
.card {
  background: #fff; border-radius: 22px; padding: 22px 20px; text-align: right;
  box-shadow: var(--shadow); border: 1px solid #edf2f0;
}
h2 { margin: 0 0 12px; font-size: 18px; color: var(--green-dark); }
p { margin: 0 0 12px; }
label { display: block; margin-bottom: 14px; font-size: 14px; }
input {
  display: block; width: 100%; margin-top: 4px; padding: 12px; min-height: 50px;
  border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 17px; background: #fbfdfc;
}
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 163, 0, .25); background: #fff; }
.opt { color: var(--muted); font-size: 12px; }
.q { color: var(--green-dark); font-size: 17px; unicode-bidi: plaintext; }
.cap { display: flex; gap: 10px; align-items: center; }
.cap input { max-width: 130px; }
.hint { color: var(--muted); font-size: 13px; }
button { font: inherit; cursor: pointer; border-radius: 14px; border: 1px solid transparent; padding: 12px 18px; min-height: 50px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.primary {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%); color: #fff;
  width: 100%; font-size: 16px; font-weight: bold; box-shadow: 0 6px 16px rgba(5, 163, 80, .28);
}
.primary:hover:not(:disabled) { filter: brightness(.94); }
.secondary { background: var(--cream); color: #8a5a00; border-color: #f3d58b; width: 100%; margin-top: 10px; }
.link { background: none; color: var(--muted); text-decoration: underline; padding: 8px 6px; min-height: 0; }
#btn-back { display: block; margin: 8px auto 0; }
.msg { min-height: 26px; margin: 12px 0 0; font-size: 14px; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }
.done {
  width: 70px; height: 70px; margin: 4px auto 12px; border-radius: 50%;
  background: #dff3e6; color: var(--ok); font-size: 38px; line-height: 70px; text-align: center;
}
#step3 { text-align: center; }

/* ---- کارت‌های ویژگی ---- */
.feats { display: grid; gap: 12px; margin-top: 22px; }
.feat {
  background: #fff; border-radius: 18px; padding: 16px 18px; border: 1px solid #edf2f0;
  display: grid; grid-template-columns: 52px 1fr; column-gap: 12px; align-items: center;
}
.feat svg { grid-row: span 2; }
.feat h3 { margin: 0; font-size: 15px; color: var(--green-dark); }
.feat p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
@media (min-width: 720px) {
  main { max-width: 560px; }
}

/* ---- صفحه‌ی باشگاه ---- */
main.wide { max-width: 760px; }
main { scroll-behavior: smooth; }
html { scroll-behavior: smooth; }
.feats { margin-bottom: 18px; }
body.club .card { margin-bottom: 18px; }
select { display: block; width: 100%; margin-top: 4px; padding: 12px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 14px; font: inherit; font-size: 16px; background: #fbfdfc; }
select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 163, 0, .25); }
.flame { display: block; margin: 0 auto 4px; }
.hero-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 4px; }
.hero-nav a { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .16); border-radius: 20px; padding: 3px 14px; font-size: 13px; }
.hero-nav a:hover { background: rgba(255, 255, 255, .3); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 8px; }
.svc { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.svc b { font-size: 26px; display: block; margin-bottom: 2px; }
.svc h3 { margin: 0 0 2px; font-size: 15px; color: var(--green-dark); }
.svc p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.8; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.seg-b { background: var(--bg); border: 1px solid var(--line); color: var(--text); min-height: 40px; padding: 6px 16px; border-radius: 22px; }
.seg-b.on { background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%); color: #fff; border-color: transparent; }
.tips { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.tips li { background: #f7fbf9; border-right: 4px solid var(--orange); border-radius: 12px; padding: 9px 14px; font-size: 14px; }
.safety { background: var(--cream); border: 1px solid #f3d58b; color: #7a4f00; border-radius: 14px; padding: 10px 14px; font-size: 13px; margin: 10px 0 0; }
.q-n { color: var(--muted); font-size: 13px; }
.q-t { font-weight: bold; margin: 2px 0 10px; }
.q-opts { display: grid; gap: 8px; }
.q-opt { background: var(--bg); border: 1.5px solid var(--line); color: var(--text); text-align: right; }
.q-opt:hover { border-color: var(--orange); }
.q-bar { height: 8px; border-radius: 6px; background: var(--line); margin-bottom: 12px; overflow: hidden; }
.q-fill { height: 100%; background: linear-gradient(90deg, var(--orange), var(--green)); width: 0; }
.q-fill.w1 { width: 17%; } .q-fill.w2 { width: 33%; } .q-fill.w3 { width: 50%; } .q-fill.w4 { width: 67%; } .q-fill.w5 { width: 83%; } .q-fill.w6 { width: 100%; }
.q-result { text-align: center; }
.q-score { font-size: 44px; font-weight: bold; color: var(--green-dark); line-height: 1.3; }
.q-result ul { text-align: right; margin: 10px 0; padding: 0 20px; font-size: 14px; }
.done-box { text-align: center; }
.code { font-size: 30px; letter-spacing: 6px; font-weight: bold; color: var(--green-dark); background: #f0f8f4; border: 2px dashed var(--green); border-radius: 14px; padding: 8px 10px; margin: 6px auto 10px; max-width: 260px; display: block; }
.club-link { display: block; margin: 8px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--cream); border: 1px solid #f3d58b; color: #7a4f00; text-decoration: none; font-size: 14px; }
.hero-club { display: inline-block; margin-top: 14px; color: #fff; background: rgba(245, 163, 0, .35); border-radius: 20px; padding: 3px 16px; font-size: 13px; text-decoration: none; }
.partner { max-width: 760px; margin: 16px auto 0; padding: 8px 18px; text-align: center; font-size: 13px; color: var(--muted); }
body.club .hero .partner { color: rgba(255,255,255,.9); margin: 12px 0 0; padding: 0; font-size: 12px; }
.logos { display: flex; justify-content: center; align-items: flex-start; gap: 26px; margin: 0 0 16px; flex-wrap: wrap; direction: rtl; }
.logo-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; min-width: 150px; }
.logo-item img { max-height: 112px; max-width: 190px; width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 12px; padding: 7px 10px; }
.logo-item:nth-child(2) img { max-height: 132px; max-width: 210px; }
.logo-item span { color: #fff; font-family: "B Nazanin", "Nazanin", Tahoma, sans-serif; font-size: 17px; font-weight: 600; text-align: center; }

/* ---- نامه‌ی تأییدیه ---- */
.letter-card { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; margin-top: 22px; }
.letter-card h3 { margin: 0 0 4px; font-size: 15px; color: var(--green-dark); }
.letter-card p { margin: 0 0 8px; font-size: 13px; color: var(--muted); line-height: 1.9; }
.letter-btn { display: inline-block; background: var(--cream); color: #8a5a00; border: 1px solid #f3d58b; border-radius: 12px; padding: 6px 14px; text-decoration: none; font-size: 13px; }
.letter-thumb { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.letter-thumb img { display: block; width: 100%; height: auto; }

.guide-link { display: inline-block; margin: -4px 0 10px; font-size: 13px; color: #8a5a00; }
