/* Misi Kerjaya 2.0 — gaya visual responsif */

:root {

  color-scheme: light;

  --navy: #17365d;

  --navy-2: #214f7f;

  --blue: #3478c7;

  --gold: #ffc857;

  --ink: #253449;

  --muted: #64748b;

  --line: #dce6f1;

  --surface: #ffffff;

  --surface-soft: #f4f8fd;

  --green: #e4f6eb;

  --green-text: #17643a;

  --red: #fff0ef;

  --red-text: #853535;

  --shadow: 0 18px 48px rgba(23, 54, 93, .10);

  --radius: 22px;

}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {

min-height: 100vh;

margin: 0;

color: var(--ink);

background:

radial-gradient(circle at 8% 8%, rgba(255, 200, 87, .18), transparent 28rem),

radial-gradient(circle at 92% 18%, rgba(52, 120, 199, .12), transparent 30rem),

linear-gradient(135deg, #f8f4e9 0%, #edf5ff 56%, #edf8f0 100%);

font-family: "Comic Sans MS", "Trebuchet MS", cursive;

line-height: 1.5;

}

button,

input,

select {

  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;

  font-size: 15px;

  min-height: 44px;

  padding: 11px 17px;

  border: 0;

  border-radius: 12px;

  font-weight: 800;

  cursor: pointer;

  transition: transform 0.18s ease,

            box-shadow 0.18s ease,

            background 0.18s ease;

}

button:hover {

  transform: translateY(-2px);

  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);

}

button:active {

  transform: scale(0.97);

}

button:hover:not(:disabled) {

  transform: translateY(-1px);

  box-shadow: 0 7px 18px rgba(23,54,93,.12);

}

button:active:not(:disabled) {

  transform: translateY(0); }

button:focus-visible,

input:focus-visible,

select:focus-visible {

  outline: 3px solid rgba(52, 120, 199, .35);

  outline-offset: 2px;

}

button:disabled {

  opacity: .55;

  cursor: not-allowed; }

.primary {

  background: var(--gold);

  color: #27364a; }

.blue {

  background: var(--navy);

  color: #fff; }

.soft {

  background: #eaf3ff;

  color: var(--navy); }

.danger {

  background: #ffe7e5;

  color: #963c37; }

.wrap {

  width: min(1100px,

  calc(100% - 28px));

  margin: 24px auto; }

.top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  margin-bottom: 16px;

}

.brand {

  display: flex;

  align-items: center;

   gap: 11px;

     color: var(--navy);

     font-weight: 900;

    letter-spacing: .45px;

    line-height: 1.25; }

.logo {

  display: grid;

  place-items: center;

  flex: 0 0 46px;

  width: 46px;

  height: 46px;

  border-radius: 15px;

  color: #fff;

  background: linear-gradient(145deg,

  var(--navy), #2d6eaa);

  box-shadow: 0 7px 18px rgba(23,54,93,.18);

   font-size: 23px;

}

.topright {

  display: flex;

  flex-wrap: wrap;

  gap: 8px; }

.panel {

  overflow: hidden;

  background: var(--surface);

  border: 1px solid rgba(220,230,241,.9);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

}

.hero {

  padding: clamp(27px, 5vw, 42px) 20px;

  color: #fff;

  text-align: center;

  background: linear-gradient(120deg, #17365d 0%, #245b8e 58%, #2d79ad 100%);

  position: relative;

  isolation: isolate;

}

.hero::after {

  content: "";

  position: absolute;

  z-index: -1;

  width: 230px;

  height: 230px;

  right: -65px;

  top: -120px;

  border: 1px solid rgba(255,255,255,.13);

  border-radius: 50%;

  box-shadow: 0 0 0 28px rgba(255,255,255,.035), 0 0 0 58px rgba(255,255,255,.025);

}

.hero .emoji {

  font-size: clamp(32px, 5vw, 43px);

}

.hero h1 {

  margin: 8px 0;

  font-size: clamp(26px, 4vw, 38px);

  letter-spacing: .5px;

  line-height: 1.15; }

.hero p {

  margin: 0;

  color: #e3efff;

  line-height: 1.6; }

.body {

  padding: clamp(19px, 4vw, 34px); }

h2 {

  margin: 0 0 9px;

  color: var(--navy);

  line-height: 1.25; }

h3 {

  color: var(--navy); }

p {

  margin-top: 7px; }

.muted {

  color: var(--muted);

  line-height: 1.6; }

.hidden {

  display: none !important; }

.grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 15px; }

.field label {

  display: block;

  margin-bottom: 7px;

  color: var(--navy);

  font-size: 11px;

  font-weight: 900;

  letter-spacing: .55px;

}

.field input, .field select, .toolbar input, .toolbar select {

  width: 100%;

  min-height: 46px;

  padding: 11px 13px;

  border: 1px solid var(--line);

  border-radius: 11px;

  background: #fff;

  color: #172b45;

  font-size: 15px;

  font-weight: 600;

  caret-color: var(--navy);

  transition: border-color .18s ease, box-shadow .18s ease;

}

.field input::placeholder, .toolbar input::placeholder {

  color: #8492a6;

  opacity: 1;

  font-weight: 400;

}

.field input:focus, .field select:focus, .toolbar input:focus, .toolbar select:focus {

  outline: none;

  border-color: var(--blue);

  box-shadow: 0 0 0 3px rgba(52,120,199,.13);

}

.field input:disabled, .field input[readonly] { color: #64748b; background: #f1f5f9; }

.notice {

  margin-top: 16px;

  padding: 13px 15px;

  border: 1px solid #e5edf7;

  border-radius: 13px;

  background: var(--surface-soft);

  color: var(--muted);

  font-size: 12px; line-height: 1.65;

}

.tabs {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-bottom: 17px;

}

.tab {

  background: #eef3f9;

  color: var(--navy);

}

.tab.active {

  background: var(--navy);

  color: #fff;

}

.bar {

   height: 10px;

   margin: 13px 0 21px;

   overflow: hidden;

   border-radius: 20px;

   background: #edf2f8;

   }

.bar

\> div

 {

  width: 0;

  height: 100%;

  border-radius:

  inherit;

  background:

  linear-gradient(90deg, #3478c7, #42b978);

  transition:

  width .3s ease;

}

.meta {

   display: flex;

   align-items: center;

    justify-content: space-between;

    gap: 12px;

     color: var(--muted);

     font-size: 12px;

     font-weight: 800;

    }

.tag {

  display: inline-block;

  padding: 6px 11px;

  border-radius: 20px;

  background: #fff4d9;

  color: #875d0a;

  font-size: 11px;

  font-weight: 900;

  letter-spacing: .35px;

}

.question {

  margin: 14px 0;

  color: var(--navy);

  font-size: clamp(20px, 3vw, 27px);

  line-height: 1.4;

}

.options {

  display: grid;

  gap: 10px;

  margin-top: 16px;

}

.opt {

  display: flex; align-items: center;

  gap: 12px;

  min-height: 54px;

  padding: 14px 15px;

  border: 1.5px solid var(--line);

  border-radius: 14px;

  background: #fff;

  cursor: pointer;

  font-weight: 700;

  line-height: 1.45;

  transition: border-color .18s ease, background .18s ease, transform .18s ease;

}

.opt:hover {

  border-color: #91b6df;

  background: #f7fbff;

  transform: translateY(-1px);

}

.opt input {

  flex: 0 0 auto;

  width: 19px;

  height: 19px;

  margin: 0;

  accent-color:

  var(--blue);

}

.opt.selected {

  border-color: var(--blue);

  background: #edf6ff;

}

.opt:has(input:disabled)

 {

  cursor: default;

}

.opt:has(input:disabled):hover { transform: none; }

.feedback {

  margin-top: 16px;

  padding: 15px;

  border-radius: 14px;

  font-size: 14px;

  line-height: 1.55;

 }

.good {

  background: var(--green);

   color: var(--green-text); }

.try {

  background: var(--red);

  color: var(--red-text); }

.actions {

  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: space-between;

   gap: 10px;

   margin-top: 20px;

  }

.cards {

  display: grid;

   grid-template-columns:

   repeat(4, minmax(0, 1fr));

   gap: 12px; margin: 17px 0;

  }

.stat {

   min-width: 0;

   padding: 16px;

   border: 1px solid var(--line);

    border-radius: 15px;

    background: #f7f9fc;

   }

.stat strong {

   display: block;

   margin-top: 5px;

   color: var(--navy);

   font-size: clamp(22px, 3vw, 27px);

   line-height: 1.2;

   overflow-wrap: anywhere;

   }

.stat span {

  color: var(--muted);

   font-size: 11px;

   font-weight: 800;

    letter-spacing: .3px;

   }

.toolbar {

   display: grid;

   grid-template-columns:

   minmax(180px, 1.4fr)

   minmax(150px, 1fr)

   auto; gap: 9px;

   margin: 15px 0; }

.tablewrap {

   overflow: auto;

    border: 1px solid var(--line);

    border-radius: 13px; }

table {

  width: 100%;

  min-width: 700px;

  border-collapse: collapse;

 }

th, td {

  padding: 12px;

  border-bottom: 1px solid #e8eef5;

  text-align: left;

  font-size: 13px; }

th {

   position: sticky;

    top: 0;

    background: #f3f7fc;

     color: var(--navy);

     font-weight: 900;

     }

tr:last-child td { border-bottom: 0; }

tbody tr:hover { background: #f9fbfe; }

.empty {

   padding: 25px;

   color: var(--muted);

    text-align: center;

  }

.resultbox {

   margin: 18px 0;

   padding: 16px;

   border: 1px solid var(--line);

   border-radius: 15px;

   background: var(--surface-soft); }

.review {

  margin: 9px 0;

   padding: 13px;

   border: 1px solid var(--line);

   border-radius: 12px; background: #fff; font-size: 13px;

    line-height: 1.65;

    overflow-wrap: anywhere; }

.footer {

  padding: 19px 8px;

  color: #8794a5;

  font-size: 11px;

  text-align: center; }

@media (max-width: 760px) {

  .wrap { width: min(100% - 20px, 650px);

     margin: 14px auto; }

  .top { align-items: flex-start;

    flex-direction: column; }

  .topright { width: 100%; }

  .topright button { flex: 1; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

}

@media (max-width: 520px) {

  .body { padding: 19px 16px; }

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

  .meta { align-items: flex-start;

    flex-direction:

     column; gap: 4px; }

  .actions { align-items: stretch;

    flex-direction: column; }

  .actions button { width: 100%; }

  .stat { padding: 13px; }

  .hero { padding: 27px 15px; }

}

@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {

    scroll-behavior: auto !important;

    transition-duration: .01ms !important;

    animation-duration: .01ms !important; }

}

@media print {

  body { background: #fff; }

  .wrap { width: 100%; margin: 0; }

  .top, .actions, .tabs, .footer { display: none !important; }

  .panel { border: 0; box-shadow: none; }

  .hero { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

}

/* LOGO MISI KERJAYA 2.0 */

.brand-logo {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 10px;

}

.main-logo {

    width: 290px;

    height: 150px;

    object-fit: contain;

    display: block;

}

.brand-text h1 {

    margin: 0;

    font-size: 25px;

    font-weight: 800;

    letter-spacing: 1px;

}

.brand-text p {

    margin: 5px 0 0;

    font-size: 14px;

    opacity: 0.8;

}

/* Paparan telefon */

@media (max-width: 600px) {

    .main-logo {

        width: 55px;

        height: 55px;

    }

    .brand-text h1 {

        font-size: 19px;

    }

    .brand-text p {

        font-size: 12px;

    }

}

/* LOGO MISI KERJAYA 2.0 */

.brand-logo2 {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 10px;

}

.main-logo2 {

    width: 100px;

    height: 80px;

    object-fit: contain;

    display: block;

}

.brand-text h1 {

    margin: 0;

    font-size: 25px;

    font-weight: 800;

    letter-spacing: 1px;

}

.brand-text p {

    margin: 5px 0 0;

    font-size: 14px;

    opacity: 0.8;

}

/* Paparan telefon */

@media (max-width: 600px) {

    .main-logo {

        width: 55px;

        height: 55px;

    }

    .brand-text h1 {

        font-size: 19px;

    }

    .brand-text p {

        font-size: 12px;

    }

}

button,

input,

select,

textarea {

  font-family: "Comic Sans MS", "Trebuchet MS", cursive;

}

/* PEMBETULAN PAPARAN PILIHAN JAWAPAN */

.opt {

    display: flex !important;

    align-items: center;

    gap: 14px;

    color: #17365d !important;

    font-size: 17px;

    font-weight: 600;

}

.opt span {

    display: inline-block !important;

    visibility: visible !important;

    opacity: 1 !important;

    color: #17365d !important;

    font-size: 17px !important;

    line-height: 1.6;

}

.opt input {

    flex-shrink: 0;

    visibility: visible !important;

    opacity: 1 !important;

}
