.apt-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  direction: rtl;
  box-sizing: border-box;
  overflow-x: hidden
}

.apt-form-wrap {
  max-width: 380px;
  padding: 0 10px;
  margin: 0 auto
}

.apt-card {
  background: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
  box-sizing: border-box
}

.apt-form-card {
  padding: 14px
}

.apt-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 700
}

.apt-subtitle {
  margin: 0;
  color: #555;
  font-size: 13px;
  line-height: 1.7
}

.apt-form {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.apt-label {
  font-size: 13px;
  color: #333;
  text-align: right;
  margin-bottom: 2px
}

.apt-label sup,
.apt-label .required {
  color: #973966;
  font-weight: 700
}

.apt-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  font-size: 14px;
  background: #f7f7f7;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .03)
}

.apt-btn {
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background: #e64b92;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(230, 75, 146, .35);
  cursor: pointer
}

.apt-alert {
  background: #fff3f3;
  border: 1px solid #ffd0d0;
  color: #8a1f1f;
  padding: 10px;
  border-radius: 12px;
  margin: 10px 0;
  font-size: 13px
}

.apt-note {
  margin-top: 12px;
  color: #666;
  font-size: 12px;
  line-height: 1.8
}

.apt-badge {
  display: inline-block;
  margin-right: 8px;
  background: #f2f2f2;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  color: #333
}

.apt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 1px;
  flex-direction: row-reverse;
  padding: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06)
}

.apt-timer {
  min-width: 72px;
  text-align: left;
  padding: 0;
  font-weight: 800;
  font-size: 15px;
  color: #111;
  border: 0;
  background: transparent
}

.apt-rows {
  background: #c94b8a;
  border-radius: 0;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.apt-q {
  border: 0;
  padding: 0;
  margin: 0
}

.apt-qimg {
  border: 0;
  border-radius: 0;
  overflow: hidden;
  margin: 0
}

.apt-qimg img {
  display: block;
  width: 100%;
  height: auto
}

.apt-row {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 6px;
  background: #f6cfe1;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #8b2b5a
}

.apt-row-num {
  width: 32px;
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: #c94b8a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 0
}

.apt-row-opts {
  display: flex;
  gap: 6px;
  flex: 1;
  justify-content: space-between;
  flex-direction: row-reverse
}

.apt-chip {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6cfe1;
  border: 1px solid #8b2b5a;
  border-radius: 10px;
  padding: 8px 6px;
  font-weight: 700;
  color: #8b2b5a;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: inset 0 0 0 1px rgba(139, 43, 90, .08)
}

.apt-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none
}

.apt-chip span {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 14px
}

.apt-chip input:checked+span {
  background: #b43f7a;
  color: #fff;
  border-radius: 8px;
  padding: 4px 8px
}

.apt-chip:hover {
  border-color: #8b2b5a;
  box-shadow: 0 0 0 1px rgba(139, 43, 90, .12)
}

.apt-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px
}

.apt-endbtn {
  background: #c94b8a;
  color: #fff;
  border: 1px solid #8b2b5a;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0
}

.apt-nav-box {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 4px;
  direction: ltr;
  width: 100%
}

.apt-square {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8b2b5a;
  background: #f6cfe1;
  color: #8b2b5a;
  font-weight: 800;
  border-radius: 10px;
  text-decoration: none
}

.apt-square.disabled {
  opacity: .35;
  pointer-events: none
}

.apt-range-box {
  padding: 10px 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  color: #8b2b5a;
  white-space: nowrap;
  direction: rtl
}

.apt-endbtn.inline {
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px
}

.apt-mini {
  margin-top: 10px;
  font-size: 13px;
  color: #333
}

/* گزارش پایانی */
.apt-report-box {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .05)
}

.apt-report-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  font-size: 13px;
  text-align: center
}

.apt-report-labels div {
  font-weight: 700;
  color: #111
}

.apt-report-values div {
  background: #f2f2f2;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  padding: 8px 10px;
  color: #111;
  font-weight: 600;
  text-align: center
}

.apt-section {
  margin-top: 20px
}

.apt-sec-title {
  font-weight: 700;
  margin-bottom: 10px
}

.apt-sec-heading {
  margin: 10px 4px 6px;
  font-size: 16px;
  font-weight: 800
}

.apt-section-title {
  margin: 10px 4px 8px
}

.apt-radar {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .05);
  direction: ltr;
  flex-wrap: nowrap
}

.apt-radar-graph {
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  margin: 0 auto
}

.apt-radar svg text {
  font-family: inherit
}

.apt-radar-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 110px;
  margin-right: 8px;
  flex: 0 0 140px
}

.apt-radar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  white-space: nowrap
}

.apt-interpret {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
  width: 100%
}

.apt-interpret-title {
  font-weight: 800;
  margin-bottom: 4px
}

.apt-interpret p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: #333
}

.apt-pie-wrap {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .05);
  width: 100%;
  box-sizing: border-box;
  direction: ltr
}

.apt-pie-chart {
  width: 200px;
  height: 200px;
  position: relative;
  flex-shrink: 0
}

.apt-pie {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px #ddd
}

.apt-pie-center {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  text-align: center;
  box-shadow: 0 0 0 1px #f0f0f0
}

.apt-pie-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #333;
  flex: 0 0 140px
}

.apt-pie-legend .dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 6px
}

.apt-pie-legend .green {
  background: #2ecc71
}

.apt-pie-legend .red {
  background: #e74c3c
}

.apt-pie-legend .blue {
  background: #3498db
}

.apt-final-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.apt-final-score {
  min-width: 70px;
  text-align: center;
  border: 1px solid #8b2b5a;
  border-radius: 12px;
  padding: 12px 10px;
  font-weight: 800;
  font-size: 20px;
  color: #8b2b5a
}

.apt-final-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.7;
  color: #333
}

.apt-report-card,
.apt-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  margin-bottom: 10px
}

.apt-done {
  padding: 0
}

.apt-done .apt-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0
}

.apt-cta {
  background: #fde9f3;
  border: 1px solid #f1c7de;
  border-radius: 16px;
  padding: 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
  margin: 8px 0
}

.apt-cta p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.8;
  color: #333;
  text-align: right
}

.apt-cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start
}

.apt-cta-btn {
  background: #8b2b5a;
  color: #fff;
  border: 1px solid #6f2148;
  border-radius: 12px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  align-self: flex-start;
  float: none
}

@media (min-width: 540px) {
  .apt-options {
    flex-direction: row;
    flex-wrap: wrap
  }

  .apt-radio {
    width: calc(50% - 4px)
  }

  .apt-btn {
    width: auto;
    min-width: 120px
  }

  .apt-form-card {
    padding: 18px
  }

  .apt-label {
    font-size: 14px
  }

  .apt-input {
    font-size: 15px;
    padding: 13px 15px
  }
}

@media (max-width: 540px) {
  .apt-card {
    padding: 10px
  }

  .apt-radar,
  .apt-pie-wrap {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px
  }

  .apt-radar-graph {
    max-width: 180px;
    min-width: 160px
  }

  .apt-radar-list {
    flex-direction: column;
    gap: 6px;
    min-width: 110px;
    margin-right: 4px;
    flex: 0 0 120px
  }

  .apt-pie-chart {
    width: 150px;
    height: 150px
  }

  .apt-pie {
    width: 150px;
    height: 150px
  }

  .apt-pie-center {
    inset: 28px;
    font-size: 11px
  }

  .apt-nav {
    flex-direction: column;
    align-items: stretch
  }

  .apt-nav-box {
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    direction: ltr;
    gap: 4px
  }

  .apt-endbtn.inline {
    width: 100%
  }
}

@media (min-width: 768px) {
  .apt-done .apt-card {
    max-width: 960px;
    margin: 0 auto
  }

  .apt-radar {
    flex-wrap: nowrap
  }

  .apt-radar-graph {
    min-width: 220px;
    max-width: 260px
  }

  .apt-radar-list {
    min-width: 150px;
    flex: 0 0 150px
  }

  .apt-pie-wrap {
    flex-wrap: nowrap;
    align-items: center
  }

  .apt-pie-legend {
    min-width: 160px
  }

  .apt-report-box {
    max-width: 960px;
    margin: 10px auto
  }
}

.apt-wrap,
.apt-wrap * {
  font-family: 'Vazir', 'Segoe UI', Tahoma, sans-serif
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Vazir';
  src: url('../fonts/Vazir-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}