@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-ExtraLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PeydaFaNum";
  src: url("assets/PeydaFaNum-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #0d204b;
  --bg-main: #0d204b;
  --bg-panel: #0d204b;
  --bg-side: #0d204b;
  --bg-side-soft: #0d204b;
  --gold: #c79e4b;
  --text-main: #ffffff;
  --text-muted: #b9caef;
  --text-soft: #8394ab;
  --input-border: #86a2d9;
  --btn-primary: #efaf33;
  --btn-primary-text: #111827;
  --btn-secondary: #173f8c;
  --btn-radius: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  width: 100%;
}

body {
  font-family: "PeydaFaNum", Tahoma, "Segoe UI", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
}

body.page-home,
body.page-survey,
body.page-suggestions,
body.page-start {
  background-color: var(--bg-page);
}

/* Force-hide active theme header/footer wrappers on survey pages */
body.page-home #masthead,
body.page-home #site-header,
body.page-home .site-header,
body.page-home .main-header,
body.page-home .whb-header,
body.page-home .wd-header-wrapper,
body.page-home .wd-header,
body.page-home #colophon,
body.page-home #site-footer,
body.page-home .site-footer,
body.page-home .main-footer,
body.page-home .wd-footer,
body.page-survey #masthead,
body.page-survey #site-header,
body.page-survey .site-header,
body.page-survey .main-header,
body.page-survey .whb-header,
body.page-survey .wd-header-wrapper,
body.page-survey .wd-header,
body.page-survey #colophon,
body.page-survey #site-footer,
body.page-survey .site-footer,
body.page-survey .main-footer,
body.page-survey .wd-footer,
body.page-suggestions #masthead,
body.page-suggestions #site-header,
body.page-suggestions .site-header,
body.page-suggestions .main-header,
body.page-suggestions .whb-header,
body.page-suggestions .wd-header-wrapper,
body.page-suggestions .wd-header,
body.page-suggestions #colophon,
body.page-suggestions #site-footer,
body.page-suggestions .site-footer,
body.page-suggestions .main-footer,
body.page-suggestions .wd-footer,
body.page-home .wd-toolbar,
body.page-home .wd-toolbar-label-show,
body.page-survey .wd-toolbar,
body.page-survey .wd-toolbar-label-show,
body.page-suggestions .wd-toolbar,
body.page-suggestions .wd-toolbar-label-show,
body.page-start #masthead,
body.page-start #site-header,
body.page-start .site-header,
body.page-start .main-header,
body.page-start .whb-header,
body.page-start .wd-header-wrapper,
body.page-start .wd-header,
body.page-start #colophon,
body.page-start #site-footer,
body.page-start .site-footer,
body.page-start .main-footer,
body.page-start .wd-footer,
body.page-start .wd-toolbar,
body.page-start .wd-toolbar-label-show {
  display: none !important;
}

.screen {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 16px;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image: none;
}

body.page-home .screen,
body.page-start .screen {
  background-color: var(--bg-page);
  background-image: none;
}

body.page-home .screen {
  width: 100vw;
  max-width: 100vw;
  min-height: 100svh;
}

body.page-home .logo-box {
  background: transparent;
}

/* صفحات تمام‌صفحه بدون اسکرول: اصلی، تشکر، انتقادات */
body.page-home.cfs-isolated-body,
body.page-start.cfs-isolated-body,
body.page-suggestions.cfs-isolated-body {
  overflow: hidden !important;
  height: 100dvh;
  height: 100svh;
  max-height: 100dvh;
}

body.page-home .cfs-isolated-root,
body.page-start .cfs-isolated-root,
body.page-suggestions .cfs-isolated-root {
  height: 100%;
  min-height: 0 !important;
  overflow: hidden;
}

body.page-home .screen,
body.page-start .screen,
body.page-suggestions .screen {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 430px;
  height: 100dvh;
  height: 100svh;
  min-height: 0;
  max-height: 100dvh;
  margin: 0 auto;
  padding: 12px 16px 16px;
  overflow: hidden;
  background-color: var(--bg-page);
  background-image: none;
}

body.page-home .screen {
  width: 100vw;
  max-width: 100vw;
}

body.page-home .panel,
body.page-start .panel,
body.page-status .panel,
body.page-suggestions .panel,
body.page-suggestions .panel.panel--content {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: 100%;
  width: 100%;
  margin: 0 auto;
  overflow: visible;
  justify-content: flex-start;
}

body.page-home .home-logo,
body.page-start .home-logo,
body.page-status .home-logo {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}

body.page-home .home-logo img,
body.page-start .home-logo img,
body.page-status .home-logo img {
  margin-top: 0 !important;
}

body.page-suggestions .logo-box {
  background: transparent;
}

body.page-survey .logo-box {
  background: transparent;
}

body.page-suggestions .panel.panel--content {
  padding: 0 18px 12px;
}

body.page-suggestions .topbar {
  flex-shrink: 0;
  margin-bottom: 8px;
}

body.page-suggestions .home-logo,
body.page-suggestions .center-brand .logo-box.home-logo {
  width: 100px;
  height: 110px;
  margin: 0 auto 10px !important;
}

body.page-suggestions .home-logo img,
body.page-suggestions .logo-box img {
  margin-top: 0 !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.page-suggestions .panel-heading {
  flex-shrink: 0;
  margin: 0 0 14px;
}

body.page-suggestions .panel.panel--content form {
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

body.page-suggestions .panel.panel--content .actions {
  margin-top: 16px !important;
}

body.page-survey .screen {
  position: relative;
  z-index: 0;
  width: 100vw;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: visible;
  background-color: var(--bg-page);
  background-image: none;
}

body.page-survey .screen > * {
  position: relative;
  z-index: 1;
}

body.page-survey .panel {
  width: 100%;
  min-height: auto;
}

body.page-survey .panel.panel--content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-page);
  margin-top: 0;
  padding-top: 24px;
}

.panel {
  position: relative;
  width: min(100%, 372px);
  margin: 0 auto;
  padding: 34px 16px 20px;
  min-height: calc(100dvh - 32px);
}

.panel::before {
  content: none;
}

.logo-box {
  width: 160px;
  height: 160px;
  margin: 0 auto 12px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin-top: 20%;
}

.home-logo {
  position: relative;
  width: 120px;
  height: 140px;
  margin: 0 auto 14px;
  margin-bottom: 25%;
  margin-top: 10%;
  z-index: auto;
}

.title {
  margin: 0;
  text-align: center;
  font-size: 3rem;
  line-height: 1;
  font-weight: 900;
}

.subtitle {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-placeholder {
  width: 168px;
  height: 124px;
  margin: 0 auto 22px;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
}

.prompt {
  margin: 0 auto;
  max-width: 292px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 700;
}

.prompt--gap-lg { margin-bottom: 168px; }
.prompt--gap-md {
  margin-bottom: 25%;
  margin-top: 30%;
 }

.highlight {
  color: #efaf33;
}

body.page-home .home-logo {
  width: min(72vw, 200px);
  height: auto;
  max-height: 170px;
  min-height: 0;
}

body.page-home .prompt {
  max-width: 318px;
  margin-top: 0;
  font-size: 1.12rem;
  line-height: 2.05;
  font-weight: 600;
  flex-shrink: 0;
}

body.page-home .prompt--gap-lg {
  margin: 20% 0;
}

body.page-home .actions {
  margin-top: 0;
  flex-shrink: 0;
}

body.page-home .panel {
  padding-top: 48px;
  padding-bottom: 20px;
}

.actions {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.btn {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 80%;
  min-height:40px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: inherit;
  font-size: 20px;
  font-weight:450;
  cursor: pointer;
  text-decoration: none;
  margin: 0% 10%;
}

.btn--primary { background: var(--btn-primary); color: var(--btn-primary-text); }
.btn--secondary { background: #143572; color: var(--text-main); }

body.page-suggestions .panel.panel--content .btn {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 80%;
  min-height:40px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: inherit;
  font-size: 20px;
  font-weight:450;
  cursor: pointer;
  text-decoration: none;
  margin: 0% 10%;
}

body.page-suggestions .panel.panel--content .btn--primary {
  background: var(--btn-primary);
  color: var(--btn-primary-text);
}

body.page-suggestions .cfs-suggestion-notice {
  flex-shrink: 0;
  margin: 0 5% 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(239, 175, 51, 0.15);
  border: 1px solid rgba(239, 175, 51, 0.45);
  color: #efaf33;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

body.page-survey .panel.panel--content .btn {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 80%;
  min-height:40px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: inherit;
  font-size: 20px;
  font-weight:450;
  cursor: pointer;
  text-decoration: none;
  margin: 0% 10%;
}

body.page-survey .panel.panel--content .btn--primary {
  background: var(--btn-primary);
  color: var(--btn-primary-text);
}

body.page-start #feedback-status-message,
body.page-start .prompt.prompt--gap-md {
  color: #ffffff !important;
}

body.page-start .panel .actions .btn {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 80%;
  min-height:40px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: inherit;
  font-size: 20px;
  font-weight:450;
  cursor: pointer;
  text-decoration: none;
  margin: 0% 10%;
}

body.page-start .panel .actions .btn--primary {
  background: var(--btn-primary);
  color: var(--btn-primary-text) !important;
}

/* صفحه پایان نظرسنجی (تشکر) */
body.page-start .panel,
body.page-status .panel {
  padding: 32px 16px 16px;
}

body.page-status .home-logo,
body.page-start.page-status .home-logo {
  width: min(72vw, 200px);
  height: auto;
  max-height: 170px;
  min-height: 0;
  margin: 0 auto 16px !important;
}

body.page-status .home-logo img,
body.page-start.page-status .home-logo img {
  width: 100%;
  height: auto;
  max-height: 170px;
  object-fit: contain;
}

body.page-start .prompt.prompt--gap-md,
body.page-status .prompt.prompt--gap-md {
  margin: 20% 0;
  max-width: 320px;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 600;
  flex-shrink: 0;
}

body.page-status .cfs-status-actions {
  width: 100%;
  max-width: 275px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
  flex-shrink: 0;
}

body.page-status .cfs-social-btn--suggest {
  background: #efaf33 !important;
  color: #111827 !important;
  border-color: transparent !important;
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
  font-weight: 700;
}

body.page-status .cfs-social-btn--suggest:hover {
  background: #f5bc4a !important;
  transform: translateY(-1px);
}

body.page-status .cfs-social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.page-status .cfs-social-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--btn-radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(18, 53, 123, 0.45);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.15s ease;
}

body.page-status .cfs-social-btn:hover {
  background: rgba(18, 53, 123, 0.65);
  transform: translateY(-1px);
}

body.page-status .cfs-social-btn img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

body.page-status .cfs-social-btn--full {
  width: 100%;
}

body.page-home .actions {
  width: 100%;
  max-width: 275px;
  margin-inline: auto;
  gap: 14px;
}

body.page-home .btn {
  min-height: 40px;
  border-radius: var(--btn-radius);
  font-size: 15px;
  font-weight: 700;
}

.topbar {
  width: min(100%, 400px);
  margin: 0 auto 1%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.back-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.25rem;
}

.back-link:hover { text-decoration: underline; }

.center-brand {
  text-align: center;
  margin-inline: auto;
}

.center-brand .logo-box { width: 120px; height: 140px; margin-bottom: 8px; }
.center-brand .title { font-size: 2.3rem; }
.center-brand .subtitle { font-size: 0.62rem; }

/* هدر نظرسنجی: لوگو و عنوان وسط صفحه */
body.page-survey .survey-page-header {
  position: relative;
  width: 100%;
  margin: 0 auto 20px;
  padding: 8px 0 0;
  display: block;
  text-align: center;
}

body.page-survey .survey-page-header > span[aria-hidden="true"] {
  display: none;
}

body.page-survey .survey-page-header .center-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

body.page-survey .survey-page-header .logo-box.home-logo {
  width: 120px;
  height: 140px;
  margin: 0 auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

body.page-survey .survey-page-header .logo-box.home-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

body.page-survey .survey-page-header .back-link {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 16px;
  margin: 3%;
  z-index: 2;
}

body.page-survey .survey-page-header .topbar-title {
  width: 100%;
  margin: 10px auto 0;
  padding: 0 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--text-soft) !important;
}

.panel--content {
  min-height: auto;
  padding: 0 18px 24px;
}

.panel-heading {
  margin: 0 0 5%;
  text-align: center;
  font-size: 16px;
  font-weight: 450;
}

.field-label {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

body.page-suggestions .panel.panel--content .input,
body.page-suggestions .panel.panel--content .select,
body.page-suggestions .panel.panel--content .textarea {
  width: 90%;
  border-radius: 18px;
  border: 1px solid var(--input-border);
  background: rgba(18, 53, 123, 0.25);
  color: var(--text-main);
  font-family: inherit;
}

body.page-suggestions .panel.panel--content .select,
body.page-suggestions .panel.panel--content .input { height: 40px; padding: 0 14px; font-size: 14px; }
body.page-suggestions .panel.panel--content .textarea { min-height: 110px; max-height: 140px; padding: 12px 14px; font-size: 14px; resize: vertical; }
body.page-suggestions .panel.panel--content .select,
body.page-suggestions .panel.panel--content .select option {
  color: #000;
}
body.page-suggestions .panel.panel--content .select:required:invalid {
  color: #fff;
}
body.page-suggestions .panel.panel--content .select option[value=""] {
  color: #fff;
}

.field {
  margin-bottom: 16px;
}

.upload-row {
  display: flex;
  justify-content: flex-start;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 45px;
  padding: 0 22px;
  border-radius: var(--btn-radius);
  border: 1px solid var(--input-border);
  color: var(--text-main);
  font-size: 14px;
  background: rgba(96, 132, 204, 0.25);
}

.survey-list {
  display: grid;
  gap: 0;
  margin: 0 10%;
}

body.page-survey .survey-question-item {
  position: relative;
  padding-bottom: 5px;
}

body.page-survey .survey-question-item + .survey-question-item {
  padding-top: 10px;
}

body.page-survey .survey-question-item + .survey-question-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

body.page-survey .survey-yesno-block {
  margin: 0 10%;
}

body.page-survey .survey-yesno-block > .survey-question-item:first-child {
  position: relative;
  padding-top: 24px;
}

body.page-survey .survey-yesno-block > .survey-question-item:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.survey-item-title {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.8;
}

.rate-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.page-survey .rate-row {
  direction: ltr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rate {
  text-align: center;
  color: var(--text-muted);
}

.rate-face {
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: #87a3d5;
  display: block;
  overflow: hidden;
}

.rate-face img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}

.rate-row .rate {
  cursor: pointer;
}

.rate-row .rate .rate-face {
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.rate-row .rate:hover .rate-face {
  transform: translateY(-1px);
}

.rate-row .rate:hover .rate-face img {
  opacity: 0;
}

/* Keep selected option visible after click */
.rate input:checked + .rate-face {
  transform: translateY(-1px);
}

.rate input:checked + .rate-face img {
  opacity: 0;
}

/* نظرسنجی: PNG بد / خوب / عالی — خاموش تیره (مثل بد و عالی در طرح)، فعال روشن */
body.page-survey .rate-row .rate-face {
  background-color: transparent;
  background-image: none;
  border-radius: 0;
}

body.page-survey .rate-row .rate-face img {
  opacity: 0.52;
  object-fit: contain;
  border-radius: 0;
  filter: brightness(0.58) saturate(0.95);
  transition:
    opacity 0.2s ease,
    filter 0.2s ease,
    transform 0.2s ease;
}

body.page-survey .rate-row .rate:hover .rate-face,
body.page-survey .rate-row .rate input:checked + .rate-face {
  background-color: transparent;
  background-image: none;
  transform: translateY(-1px);
}

body.page-survey .rate-row .rate:hover .rate-face img,
body.page-survey .rate-row .rate input:checked + .rate-face img {
  opacity: 1;
  filter: brightness(1.08) saturate(1.05);
}

body.page-survey .rate-row .rate input:checked + .rate-face img {
  filter: brightness(1.12) saturate(1.1) drop-shadow(0 0 12px rgba(255, 255, 255, 0.28));
}

body.page-survey .rate-row .rate:hover .rate-face,
body.page-survey .rate-row .rate input:checked + .rate-face {
  background-image: none !important;
}

.rate input:checked ~ .rate-label {
  color: #ffffff;
  font-weight: 600;
}

/* هاور: آیکن رنگی از assets (همان فایل‌های دسکتاپ) */
.rate-row .rate:nth-child(1):hover .rate-face {
  background-color: transparent;
  background-image: url("assets/ضعیف-رنگی.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rate-row .rate:nth-child(2):hover .rate-face {
  background-color: transparent;
  background-image: url("assets/متوسط-رنگی.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rate-row .rate:nth-child(3):hover .rate-face {
  background-color: transparent;
  background-image: url("assets/عالی-رنگی.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rate-row .rate:nth-child(1) input:checked + .rate-face {
  background-color: transparent;
  background-image: url("assets/ضعیف-رنگی.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rate-row .rate:nth-child(2) input:checked + .rate-face {
  background-color: transparent;
  background-image: url("assets/متوسط-رنگی.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rate-row .rate:nth-child(3) input:checked + .rate-face {
  background-color: transparent;
  background-image: url("assets/عالی-رنگی.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.rate-label {
  font-size: 0.98rem;
}

/* سوالات بله / خیر — آیکن PNG + متن (رادیو مخفی، کلیک روی برچسب) */
.survey-yesno-block {
  margin-top: 0;
}

.survey-yesno-item {
  margin: 0 0 10%;
}

body.page-survey .yesno-row {
  direction: ltr;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 12px;
}

body.page-survey .yesno-option {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

body.page-survey .yesno-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 1;
  filter: brightness(1.2) saturate(1.12) contrast(1.04);
  transition: opacity 0.2s ease, filter 0.2s ease;
}

/* خیر تیره‌تر است — در حالت فعال به‌اندازهٔ بله روشن شود */
body.page-survey .yesno-option--no .yesno-icon {
  filter: brightness(1.48) saturate(1.18) contrast(1.08);
}

body.page-survey .yesno-label {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff !important;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 0.2s ease, font-weight 0.2s ease, color 0.2s ease;
}

/* بعد از انتخاب — گزینهٔ انتخاب‌نشده مثل دکمه‌های امتیازدهی غیرفعال */
body.page-survey .yesno-row:has(.yesno-radio:checked) .yesno-option:not(:has(.yesno-radio:checked)) .yesno-icon {
  opacity: 0.52;
  filter: brightness(0.55) saturate(0.9);
}

body.page-survey .yesno-row:has(.yesno-radio:checked) .yesno-option:not(:has(.yesno-radio:checked)) .yesno-label {
  opacity: 0.45;
  font-weight: 500;
  color: #ffffff !important;
}

body.page-survey .yesno-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-survey .yesno-option:has(.yesno-radio:focus-visible) {
  outline: 2px solid #efaf33;
  outline-offset: 4px;
  border-radius: 8px;
}

.footer-textarea {
  margin: 18px 10% 0 0;
  min-height: 60px;
}

body.page-survey .footer-textarea {
  margin: 24px 10% 0;
  min-height: 60px;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

body.page-survey .footer-textarea .textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 70px;
  padding: 10px 14px;
  font-size: 14px;
  resize: vertical;
  border-radius: 18px;
  border: 1px solid #fff;
  background: rgba(18, 53, 123, 0.25);
  color: var(--text-soft) !important;
  font-family: inherit;
  box-sizing: border-box;
}

body.page-survey .footer-textarea .textarea::placeholder {
  color: var(--text-soft);
  opacity: 1;
}

@media (min-width: 768px) {
  body.page-home,
  body.page-survey,
  body.page-suggestions,
  body.page-start {
    background: var(--bg-page) !important;
  }

  .screen {
    width: 430px;
    max-width: 430px;
    padding: 16px;
    min-height: 100dvh;
  }

  body.page-home .screen,
  body.page-survey .screen,
  body.page-suggestions .screen,
  body.page-start .screen {
    width: 430px;
    max-width: 430px;
    margin: 0 auto;
  }

  body.page-home .screen,
  body.page-start .screen,
  body.page-suggestions .screen {
    min-height: 0;
    max-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }

  body.page-home .screen {
    width: 430px;
    max-width: 430px;
  }

  .panel { width: 100%; }
}

@media (max-width: 767px) {
  .screen {
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
    background-image: none;
  }

  body.page-home .screen,
  body.page-start .screen,
  body.page-suggestions .screen {
    width: 100%;
    max-width: none;
    height: 100dvh;
    height: 100svh;
    max-height: 100dvh;
    min-height: 0;
    padding: 10px 14px 14px;
    overflow: hidden;
  }

  body.page-home .screen {
    width: 100%;
    max-width: none;
  }

  .panel {
    width: 100%;
  }

  body.page-home .panel,
  body.page-start .panel,
  body.page-status .panel,
  body.page-suggestions .panel,
  body.page-suggestions .panel.panel--content {
    min-height: 0 !important;
  }
}

/* Global text color normalization:
   Keep all text white except intentional yellow elements. */
body.page-home,
body.page-survey,
body.page-suggestions,
body.page-start,
body.page-home h1, body.page-home h2, body.page-home h3, body.page-home h4, body.page-home h5, body.page-home h6,
body.page-survey h1, body.page-survey h2, body.page-survey h3, body.page-survey h4, body.page-survey h5, body.page-survey h6,
body.page-suggestions h1, body.page-suggestions h2, body.page-suggestions h3, body.page-suggestions h4, body.page-suggestions h5, body.page-suggestions h6,
body.page-start h1, body.page-start h2, body.page-start h3, body.page-start h4, body.page-start h5, body.page-start h6,
body.page-home p, body.page-survey p, body.page-suggestions p, body.page-start p,
body.page-home span, body.page-survey span, body.page-suggestions span, body.page-start span,
body.page-home label, body.page-survey label, body.page-suggestions label, body.page-start label,
body.page-home a, body.page-survey a, body.page-suggestions a,
body.page-home .field-label, body.page-survey .field-label, body.page-suggestions .field-label, body.page-start .field-label,
body.page-home .rate-label, body.page-survey .rate-label, body.page-suggestions .rate-label, body.page-start .rate-label,
body.page-home .survey-item-title, body.page-survey .survey-item-title, body.page-suggestions .survey-item-title, body.page-start .survey-item-title {
  color: #ffffff !important;
}

/* Keep intended yellow accent text unchanged */
.highlight,
body.page-home .highlight {
  color: #efaf33 !important;
}

/* Button colors and smooth hover */
.btn {
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, outline-color 0.25s ease;
}

body.page-home .btn--primary,
body.page-home .btn--secondary,
body.page-home a.btn--primary,
body.page-home a.btn--secondary {
  background: #efaf33 !important;
  color: #111827 !important;
  border: none !important;
  outline: 1px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

body.page-home .btn--primary:hover,
body.page-home .btn--secondary:hover,
body.page-home a.btn--primary:hover,
body.page-home a.btn--secondary:hover {
  background: #f3bc4f !important;
  color: #111827 !important;
  outline: 1px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(239, 175, 51, 0.35);
}
