/* ===================================
   PANTOLAB SELF-ASSESSMENT - STYLESHEET
=================================== */

:root {
  --primary: #22396F;
  --primary-dark: #17284F;
  --primary-light: #EDF2FF;
  --accent: #6485D0;
  --background: #F7F8FC;
  --white: #FFFFFF;
  --text: #19243A;
  --muted: #68758B;
  --border: #E1E5ED;
  --success: #248568;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  padding: 32px 18px;
  background: #FFFFFF;
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #86A7F4;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.assessment-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 18px;
}

/* HEADER */

.assessment-card {
  overflow: hidden;
  border: 1px solid rgba(34, 57, 111, 0.08);
  border-radius: 18px;
  background: var(--background);
  box-shadow: 0 12px 40px rgba(24, 40, 79, 0.09);
}

.assessment-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  min-height: 185px;
  padding: 36px 44px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(119, 153, 232, 0.24),
      transparent 32%
    ),
    linear-gradient(
      120deg,
      #17284F 0%,
      #22396F 58%,
      #304C88 100%
    );
}

.header-pattern {
  position: absolute;
  top: -45px;
  right: -20px;
  width: 200px;
  height: 200px;
  background-image:
    linear-gradient(
      rgba(255,255,255,0.35) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255,255,255,0.35) 1px,
      transparent 1px
    );
  background-size: 30px 30px;
  opacity: 0.28;
  transform: rotate(12deg);
  pointer-events: none;
  mask-image: linear-gradient(135deg, black, transparent);
}

.header-left,
.header-right {
  position: relative;
  z-index: 1;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.23);
  border-radius: 30px;
  background: rgba(255,255,255,0.10);
  color: #EDF2FF;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.3px;
}

.header-left h1 {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.header-right {
  max-width: 430px;
  color: #E9EEFA;
  font-size: 14px;
  line-height: 1.85;
}

/* MAIN CONTENT */

.assessment-content {
  padding: 30px 32px 26px;
}

/* INTRO SECTION */
.intro-section {
  padding: 8px 0;
}

.intro-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.4px;
}

.intro-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.info-card {
  padding: 18px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
}

.info-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 16px;
  font-weight: 750;
}

.info-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 750;
}

.info-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.disclaimer-box {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #FFE2A8;
  border-radius: 12px;
  background: #FFFDF5;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #B45309;
  font-size: 13px;
  font-weight: 750;
}

.disclaimer-box p {
  margin: 0;
  color: #78350F;
  font-size: 12px;
  line-height: 1.7;
}

.start-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.start-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* QUESTION CONTENT */

.question-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
}

.question-meta .number {
  color: var(--primary);
}

.question-title {
  margin: 0 0 8px;
  color: var(--text);
  font-size: clamp(21px, 2.5vw, 27px);
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: -0.45px;
}

.question-description {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}

/* ANSWER OPTIONS */

.answer-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.answer-option {
  display: flex;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 185px;
  padding: 20px 13px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--white);
  color: var(--text);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.answer-option:hover {
  border-color: var(--accent);
  background: #F8FAFF;
  box-shadow: 0 5px 18px rgba(34, 57, 111, 0.08);
  transform: translateY(-2px);
}

.answer-option.selected {
  padding: 19px 12px;
  border: 2px solid var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(34, 57, 111, 0.06);
}

.option-letter {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 13px;
  border-radius: 13px;
  background: #F0F1F6;
  color: var(--primary);
  font-size: 19px;
  font-weight: 750;
}

.answer-option.selected .option-letter {
  background: var(--primary);
  color: var(--white);
}

.option-text {
  display: block;
  max-width: 230px;
}

/* PROGRESS */

.progress-information {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 9px;
  color: var(--muted);
  font-size: 12px;
}

.progress-percentage {
  color: var(--primary);
  font-weight: 750;
}

.progress-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 30px;
  background: #E5E8F0;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--accent)
  );
  transition: width 0.3s ease;
}

/* PRIVACY */

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #E8EBF1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.privacy-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #E9EEFC;
  color: var(--primary);
  font-size: 12px;
  font-weight: 750;
}

/* NAVIGATION */

.question-navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  margin-top: 16px;
}

.back-button {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #FFFFFF;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.back-button:hover {
  background: var(--primary-light);
}

.step-label {
  margin-left: auto;
  color: #7B8599;
  font-size: 11px;
}

/* RESULTS */

.result-section {
  padding: 8px 0 5px;
  text-align: center;
}

.result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 15px;
  border-radius: 18px;
  background: #E9EEFC;
  color: var(--primary);
  font-size: 28px;
  font-weight: 750;
}

.result-label {
  color: var(--primary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.6px;
}

.result-title {
  margin: 9px 0 10px;
  color: var(--text);
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 750;
  line-height: 1.4;
}

.result-description {
  max-width: 690px;
  margin: 0 auto 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.recommendation-heading {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.recommendations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}

.recommendation-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFFFFF;
}

.recommendation-card.primary-recommendation {
  border-color: #A8B9E7;
  background: #F3F6FF;
}

.recommendation-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 20px;
  background: #E5EBFA;
  color: var(--primary);
  font-size: 10px;
  font-weight: 750;
}

.recommendation-card h3 {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.recommendation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.restart-button {
  margin-top: 12px;
  padding: 9px 15px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.restart-button:hover {
  text-decoration: underline;
}

/* FORM DATA DIRI */

.lead-section {
  padding: 8px 0 5px;
}

.lead-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: #E9EEFC;
  color: #22396F;
  font-size: 25px;
}

.lead-label {
  color: #22396F;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.5px;
}

.lead-title {
  margin: 8px 0 10px;
  color: #19243A;
  font-size: clamp(23px, 3vw, 30px);
  font-weight: 750;
  line-height: 1.4;
}

.lead-description {
  margin: 0 0 24px;
  color: #68758B;
  font-size: 13px;
  line-height: 1.8;
}

.lead-field {
  margin-bottom: 17px;
}

.lead-field label {
  display: block;
  margin-bottom: 7px;
  color: #19243A;
  font-size: 13px;
  font-weight: 650;
}

.lead-field input {
  display: block;
  width: 100%;
  min-height: 47px;
  padding: 12px 14px;
  border: 1px solid #DCE2ED;
  border-radius: 9px;
  background: #FFFFFF;
  color: #19243A;
  font: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.lead-field input:focus {
  border-color: #22396F;
  box-shadow: 0 0 0 3px rgba(34, 57, 111, .09);
}

.lead-field input::placeholder {
  color: #9AA4B5;
}

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 20px;
  color: #68758B;
  font-size: 11px;
  line-height: 1.8;
}

.lead-consent input {
  flex-shrink: 0;
  margin-top: 4px;
  accent-color: #22396F;
}

.lead-consent a {
  color: #22396F;
  text-decoration: underline;
}

.lead-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 49px;
  padding: 13px 20px;
  border: 0;
  border-radius: 9px;
  background: #22396F;
  color: #FFFFFF;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: background .2s;
}

.lead-submit:hover {
  background: #17284F;
}

.lead-submit:disabled {
  opacity: .65;
  cursor: wait;
}

.lead-status {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.7;
}

.lead-status.error {
  color: #B42318;
}

.lead-status.success {
  color: #18794E;
}

/* BOTTOM INFORMATION */

.assessment-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 12px;
  padding: 18px 22px;
  border: 1px solid #DDE4F4;
  border-radius: 14px;
  background: #FFFFFF;
}

.footer-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: #EAF0FF;
  color: var(--primary);
  font-size: 18px;
  font-weight: 750;
}

.footer-copy {
  flex: 1;
  min-width: 0;
}

.footer-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--primary);
  font-size: 12px;
}

.footer-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.footer-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.footer-tags span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.5px;
}

/* RESPONSIVE */

@media (max-width: 760px) {
  body {
    padding: 18px 12px;
  }

  .assessment-header {
    grid-template-columns: 1fr;
    gap: 17px;
    padding: 27px 22px;
  }

  .header-left h1 {
    font-size: 27px;
  }

  .header-right {
    font-size: 13px;
    line-height: 1.75;
  }

  .assessment-content {
    padding: 23px 17px 20px;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .question-title {
    font-size: 21px;
  }

  .answer-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .answer-option {
    min-height: 160px;
    padding: 15px 10px;
    font-size: 12px;
  }

  .answer-option.selected {
    padding: 14px 9px;
  }

  .option-letter {
    width: 43px;
    height: 43px;
    margin-bottom: 10px;
    font-size: 17px;
  }

  .recommendations {
    grid-template-columns: 1fr;
  }

  .assessment-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 16px;
  }

  .footer-copy {
    flex-basis: calc(100% - 60px);
  }

  .footer-tags {
    justify-content: flex-start;
    width: 100%;
    padding-left: 54px;
  }
}

@media (max-width: 380px) {
  .assessment-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .answer-option {
    padding: 13px 7px;
    font-size: 11px;
  }

  .answer-option.selected {
    padding: 12px 6px;
  }

  .option-letter {
    width: 39px;
    height: 39px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ===================================
   SURVEY RUNNER EXTENSIONS & EMBED
=================================== */

body.sv-embed {
  padding: 0;
  margin: 0;
  background: transparent;
}

.sv-embed .assessment-container {
  padding: 0;
  max-width: 100%;
}

.sv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto 16px;
  padding: 0 18px;
}

.sv-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
  font-size: 16px;
  color: #17284F;
}

.sv-brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6485D0;
}

.sv-topbar-note {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #68758B;
}

/* On-Page Score Breakdown Cards */
.category-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 22px auto 26px;
  max-width: 760px;
  text-align: left;
}

.category-breakdown-card {
  padding: 16px 20px;
  border: 1px solid #E1E5ED;
  border-radius: 12px;
  background: #FFFFFF;
  transition: all 0.2s ease;
}

.category-breakdown-card.primary {
  border-color: #6485D0;
  background: #F8FAFF;
  box-shadow: 0 4px 14px rgba(34, 57, 111, 0.06);
}

.category-breakdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.category-breakdown-title {
  font-size: 14px;
  font-weight: 750;
  color: #19243A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-breakdown-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  background: #E5EBFA;
  color: #22396F;
  font-weight: 750;
  letter-spacing: 0.5px;
}

.category-breakdown-stats {
  font-size: 13px;
  font-weight: 750;
  color: #22396F;
}

.category-breakdown-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #EDF2FF;
  overflow: hidden;
  margin-bottom: 8px;
}

.category-breakdown-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #22396F, #6485D0);
  transition: width 0.6s ease;
}

.category-breakdown-desc {
  font-size: 12px;
  color: #68758B;
  margin: 0;
  line-height: 1.6;
}


