:root{
  --ius:#7a0019;
  --ius-dark:#500011;
  --ius-soft:#fff1f4;
  --gold:#b49565;
  --blue:#2563eb;
  --green:#16a34a;
  --text:#111827;
  --muted:#667085;
  --line:#e5e7eb;
  --bg:#f4f6fb;
  --card:#ffffff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(180,149,101,.18), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(122,0,25,.15), transparent 25%),
    linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--text);
}
.page{max-width:930px;margin:34px auto;padding:0 16px}
.page.centered{min-height:100vh;display:flex;align-items:center;justify-content:center;margin:0 auto}
.survey-card,.thanks-card{
  background:var(--card);
  border:1px solid rgba(226,232,240,.9);
  border-radius:28px;
  box-shadow:0 24px 60px rgba(15,23,42,.14);
  overflow:hidden;
}
.thanks-card{padding:34px;text-align:center;max-width:540px}
.thanks-card img{max-width:230px;margin-bottom:18px}
.thanks-card h1{font-size:25px;margin:0 0 8px;color:var(--ius)}
.thanks-card p{margin:5px 0}.muted{color:var(--muted);font-size:14px}

.survey-header{
  position:relative;
  text-align:center;
  padding:34px 34px 28px;
  color:#fff;
  background:
    linear-gradient(135deg, rgba(80,0,17,.98), rgba(122,0,25,.96) 55%, rgba(148,19,47,.96)),
    radial-gradient(circle at 80% 15%, rgba(180,149,101,.32), transparent 25%);
  border-bottom:4px solid var(--gold);
}
.survey-header:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:1px;
  background:rgba(255,255,255,.25);
}
.logo-wrap{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:14px;
}
.logo-wrap img{
  max-width:300px;
  height:auto;
  display:block;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,.22));
}
.survey-header h1{
  font-size:31px;
  text-transform:uppercase;
  letter-spacing:.045em;
  margin:12px 0 8px;
  color:#fff;
  line-height:1.15;
}
.survey-header p{
  margin:0 auto;
  color:rgba(255,255,255,.88);
  font-size:16px;
  line-height:1.45;
  max-width:720px;
}
.step-indicator{
  padding:18px 34px 0;
  color:#475467;
  font-size:14px;
  font-weight:700;
  display:flex;
  align-items:center;
  gap:10px;
}
.step-indicator:before{
  content:"";
  width:10px;height:10px;border-radius:50%;
  background:var(--gold);
  box-shadow:0 0 0 5px rgba(180,149,101,.18);
}
.step{display:none}.step.active{display:block}
.section-body{padding:26px 36px 30px}
.section-body h2{
  margin:0;
  font-size:18px;
  color:#697386;
  font-weight:800;
}
.section-body h3{
  margin:7px 0 8px;
  font-size:25px;
  color:#111827;
  line-height:1.2;
}
.hint{
  font-size:15px;
  color:var(--muted);
  margin:0 0 24px;
  background:#f8fafc;
  border-left:4px solid var(--gold);
  padding:10px 12px;
  border-radius:10px;
}
.question{
  padding:18px 18px 20px;
  margin:0 0 18px;
  border:1px solid #eef2f7;
  border-radius:18px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  transition:.15s ease;
}
.question:hover{
  border-color:#dbe3ef;
  box-shadow:0 8px 22px rgba(15,23,42,.05);
}
.question label{
  display:block;
  font-size:15.5px;
  font-weight:700;
  line-height:1.4;
  margin-bottom:12px;
  color:#182230;
}
.question label span{color:#dc2626}
.question-error{background:#fff7ed;border:1px solid #fb923c;box-shadow:0 0 0 4px rgba(251,146,60,.12)}
.rating{direction:rtl;display:inline-flex;gap:10px}
.rating input{display:none}
.rating label{
  font-size:36px;
  line-height:1;
  cursor:pointer;
  color:#d9e1ee;
  transition:.12s;
  margin:0;
  text-shadow:0 1px 0 #fff;
}
.rating input:checked~label{color:#f59e0b;text-shadow:0 3px 10px rgba(245,158,11,.22)}
.rating label:hover,.rating label:hover~label{color:#fbbf24;transform:scale(1.08)}
textarea{
  width:100%;
  min-height:130px;
  border:1px solid #cbd5e1;
  border-radius:16px;
  padding:14px;
  font-family:inherit;
  font-size:14.5px;
  resize:vertical;
  background:#fff;
}
textarea:focus{outline:none;border-color:var(--ius);box-shadow:0 0 0 4px rgba(122,0,25,.11)}
.actions{
  padding:18px 36px 26px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:12px;
  background:linear-gradient(180deg,#ffffff,#f9fafb);
}
.btn{
  border:0;
  border-radius:999px;
  padding:13px 24px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:145px;
  letter-spacing:.01em;
  transition:.15s ease;
}
.btn-primary{background:var(--ius);color:#fff;box-shadow:0 10px 20px rgba(122,0,25,.22)}
.btn-primary:hover{background:var(--ius-dark);transform:translateY(-1px)}
.btn-secondary{background:#eef2f7;color:#344054;border:1px solid #d0d5dd}
.btn-secondary:hover{background:#e4e7ec}
.btn-success{background:var(--green);color:#fff;box-shadow:0 10px 20px rgba(22,163,74,.2)}
.btn-success:hover{background:#15803d;transform:translateY(-1px)}

@media(max-width:640px){
  .page{margin:14px auto;padding:0 10px}
  .survey-card{border-radius:20px}
  .survey-header{padding:26px 18px 22px}
  .logo-wrap img{max-width:235px}
  .survey-header h1{font-size:23px}
  .survey-header p{font-size:14px}
  .step-indicator{padding:16px 18px 0}
  .section-body{padding:22px 18px}
  .section-body h3{font-size:21px}
  .rating label{font-size:31px}
  .question{padding:15px}
  .actions{position:sticky;bottom:0;padding:14px 16px;flex-direction:column-reverse;background:#fff;box-shadow:0 -10px 24px rgba(15,23,42,.08)}
  .btn{width:100%;min-width:auto}
}
