/* ═══════════════════════════════════════════════════════════════
   Career Navigator Questionnaire v2.0 — Stylesheet
   Jasmiza Solutions | jasmizasolutions.com.my
   Brand: Ruby #D41D60 · Prussian Blue #1C3557 · White #FFFFFF
   ═══════════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --dark:   #1C3557;   /* Prussian Blue — primary brand colour */
  --mid:    #D41D60;   /* Ruby — accent / interactive colour */
  --teal:   #a01548;   /* Ruby dark — hover states */
  --gold:   #f5a7c7;   /* Ruby light — progress bar, badges */
  --green:  #1C3557;   /* Submit button — Prussian Blue */
  --body:   #2C2C2C;
  --grey:   #666;
  --light:  #F8F4F6;   /* Very light ruby-tinted background */
  --white:  #fff;
  --border: #e0c8d4;   /* Soft ruby-tinted border */
  --radius: 10px;
  --shadow: 0 2px 12px rgba(28,53,87,0.10);
}

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── BASE ── */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--light);
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
  background: var(--dark);
  color: var(--white);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.header-sub {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}
.header-badge {
  background: var(--mid);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ── PROGRESS BAR ── */
.progress-wrap {
  background: rgba(255,255,255,0.15);
  height: 5px;
}
.progress-bar {
  height: 5px;
  background: var(--mid);
  transition: width 0.4s ease;
  width: 11.1%;
}
.progress-label {
  max-width: 860px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
}
.progress-label strong {
  color: var(--gold);
}

/* ── MAIN LAYOUT ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ── SECTION CARDS ── */
.section-card {
  display: none;
  animation: fadeIn 0.3s ease;
}
.section-card.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-header {
  background: var(--dark);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 20px 28px;
  margin-bottom: 0;
  border-left: 5px solid var(--mid);
}
.section-header .sec-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.section-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}
.section-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}

.section-body {
  background: var(--white);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

/* ── QUESTIONS ── */
.q-block {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.q-block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.q-label {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.q-num {
  background: var(--mid);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
  flex-shrink: 0;
}
.q-req {
  color: #c0392b;
  font-size: 13px;
  margin-left: 2px;
}
.q-hint {
  font-size: 12px;
  color: var(--grey);
  margin-bottom: 10px;
  font-style: italic;
}
.q-optional {
  font-size: 11px;
  color: var(--grey);
  font-weight: 400;
  font-style: italic;
  margin-left: 4px;
}

/* ── FORM INPUTS ── */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  color: var(--body);
  background: var(--white);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--mid);
  box-shadow: 0 0 0 3px rgba(212,29,96,0.12);
}
textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── RADIO & CHECKBOX OPTION CARDS ── */
.options-grid {
  display: grid;
  gap: 10px;
}
.options-grid.cols-2 {
  grid-template-columns: 1fr 1fr;
}
.options-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.option-card {
  cursor: pointer;
}
.option-card input {
  display: none;
}
.option-card .card-inner {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  transition: all 0.2s;
  background: var(--white);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.option-card .card-inner:hover {
  border-color: var(--mid);
  background: #fdf0f5;
}
.option-card input:checked + .card-inner {
  border-color: var(--mid);
  background: #fdf0f5;
  box-shadow: 0 0 0 2px rgba(212,29,96,0.18);
}
.option-card .dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
  background: var(--white);
}
.option-card input[type="radio"]:checked + .card-inner .dot {
  background: var(--mid);
  border-color: var(--mid);
  box-shadow: inset 0 0 0 3px var(--white);
}
.option-card .check {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
}
.option-card input[type="checkbox"]:checked + .card-inner .check {
  background: var(--mid);
  border-color: var(--mid);
}
.option-card input[type="checkbox"]:checked + .card-inner .check::after {
  content: '✓';
  color: white;
  font-size: 11px;
  font-weight: 700;
}
.option-card .opt-text strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
}
.option-card .opt-text span {
  font-size: 12px;
  color: var(--grey);
}

/* ── BECOME TYPE CARDS ── */
.become-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.become-card {
  cursor: pointer;
}
.become-card input {
  display: none;
}
.become-card .bc-inner {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 16px 14px;
  transition: all 0.2s;
  background: var(--white);
  height: 100%;
}
.become-card .bc-inner:hover {
  border-color: var(--mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.become-card input:checked + .bc-inner {
  border-color: var(--mid);
  background: #fdf0f5;
  box-shadow: 0 0 0 3px rgba(212,29,96,0.18);
}
.bc-emoji  { font-size: 28px; margin-bottom: 8px; text-align: center; }
.bc-type   { font-weight: 700; font-size: 14px; color: var(--dark); text-align: center; margin-bottom: 4px; }
.bc-tag    { font-size: 11px; color: var(--mid); text-align: center; font-style: italic; margin-bottom: 8px; }
.bc-desc   { font-size: 12px; color: var(--grey); line-height: 1.5; }

/* ── DIRECTION CARDS ── */
.dir-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.dir-card {
  cursor: pointer;
}
.dir-card input {
  display: none;
}
.dir-card .dc-inner {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px;
  transition: all 0.2s;
  background: var(--white);
  height: 100%;
}
.dir-card .dc-inner:hover {
  border-color: var(--mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.dir-card input:checked + .dc-inner {
  border-color: var(--mid);
  background: #fdf0f5;
  box-shadow: 0 0 0 3px rgba(212,29,96,0.18);
}
.dc-emoji { font-size: 32px; text-align: center; margin-bottom: 8px; }
.dc-title { font-size: 16px; font-weight: 700; color: var(--dark); text-align: center; margin-bottom: 4px; }
.dc-tag   { font-size: 11px; color: var(--mid); text-align: center; font-style: italic; margin-bottom: 10px; }
.dc-desc  { font-size: 12px; color: var(--grey); line-height: 1.5; }

/* ── STAGE CARDS ── */
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.stage-card {
  cursor: pointer;
}
.stage-card input {
  display: none;
}
.stage-card .sc-inner {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s;
}
.stage-card .sc-inner:hover {
  border-color: var(--mid);
  background: #fdf0f5;
}
.stage-card input:checked + .sc-inner {
  border-color: var(--mid);
  background: #fdf0f5;
  box-shadow: 0 0 0 2px rgba(212,29,96,0.18);
}
.sc-title { font-weight: 700; font-size: 14px; color: var(--dark); margin-bottom: 4px; }
.sc-desc  { font-size: 12px; color: var(--grey); }

/* ── LIKERT TABLE ── */
.likert-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.likert-table th {
  background: var(--dark);
  color: var(--white);
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
}
.likert-table th:first-child {
  text-align: left;
  width: 45%;
}
.likert-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.likert-table td:first-child {
  text-align: left;
  font-weight: 500;
}
.likert-table tr:last-child td {
  border-bottom: none;
}
.likert-table tr:nth-child(even) td {
  background: var(--light);
}
.likert-table input[type="radio"] {
  cursor: pointer;
  width: 17px;
  height: 17px;
  accent-color: var(--mid);
}

/* ── SUPPORT NETWORK TABLE ── */
.support-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.support-table th {
  background: var(--dark);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.support-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.support-table tr:nth-child(even) td {
  background: var(--light);
}
.support-table tr:last-child td {
  border-bottom: none;
}
.support-table .type-cell {
  font-weight: 600;
  color: var(--dark);
}
.support-table .type-desc {
  font-size: 11px;
  color: var(--grey);
  font-weight: 400;
  font-style: italic;
}
.support-inline {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.support-inline label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}
.support-inline input[type="radio"] {
  accent-color: var(--mid);
  width: 15px;
  height: 15px;
}

/* ── NAVIGATION BUTTONS ── */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.btn {
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: inherit;
}
.btn-prev {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--dark);
}
.btn-prev:hover {
  background: var(--light);
}
.btn-next {
  background: var(--mid);
  color: var(--white);
}
.btn-next:hover {
  background: var(--teal);
}
.btn-submit {
  background: var(--dark);
  color: var(--white);
  padding: 14px 36px;
  font-size: 16px;
  border: 2px solid var(--mid);
}
.btn-submit:hover {
  background: var(--mid);
}
.nav-hint {
  font-size: 12px;
  color: var(--grey);
}

/* ── SUCCESS SCREEN ── */
#success-screen {
  display: none;
  text-align: center;
  padding: 60px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 32px;
  border-top: 5px solid var(--mid);
}
.success-icon  { font-size: 56px; margin-bottom: 16px; }
.success-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.success-sub {
  font-size: 15px;
  color: var(--grey);
  max-width: 480px;
  margin: 0 auto 24px;
}
.success-brand {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mid);
  letter-spacing: 0.5px;
}

/* ── INFO BOX ── */
.info-box {
  background: #fdf0f5;
  border-left: 4px solid var(--mid);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #8a0f3d;
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .become-grid,
  .dir-grid                          { grid-template-columns: 1fr; }
  .options-grid.cols-2,
  .options-grid.cols-4               { grid-template-columns: 1fr; }
  .stage-grid                        { grid-template-columns: 1fr; }
  .header-inner                      { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── EMBED MODE (when loaded inside an iframe) ── */
body.embed-mode .site-header {
  position: relative;
}