/* ===== MARVEL STUDIO THEME - KUESIONER STRES & POLA TIDUR ===== */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;500;600;700&family=Oswald:wght@300;400;600;700&display=swap');

:root {
  --marvel-red: #E8232A;
  --marvel-dark-red: #A01219;
  --marvel-gold: #F0C040;
  --marvel-dark: #0A0A0A;
  --marvel-darker: #050505;
  --marvel-gray: #1A1A1A;
  --marvel-light-gray: #2A2A2A;
  --marvel-silver: #C0C0C0;
  --marvel-white: #F5F5F5;
  --text-body: #D0D0D0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  min-height: 100vh;
  background-color: var(--marvel-darker);
  font-family: 'Rajdhani', sans-serif;
  color: var(--text-body);
  overflow-x: hidden;
}

/* ===== COMIC PANEL BACKGROUND ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 60px,
      rgba(232,35,42,0.03) 60px,
      rgba(232,35,42,0.03) 62px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 60px,
      rgba(232,35,42,0.03) 60px,
      rgba(232,35,42,0.03) 62px
    );
  pointer-events: none;
  z-index: 0;
}

/* ===== NOISE TEXTURE OVERLAY ===== */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

/* ===== HEADER ===== */
.marvel-header {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #000 0%, var(--marvel-gray) 100%);
  border-bottom: 3px solid var(--marvel-red);
  padding: 0;
  box-shadow: 0 4px 30px rgba(232,35,42,0.4);
}

.header-top {
  background: var(--marvel-red);
  padding: 6px 0;
  text-align: center;
}

.header-top span {
  font-family: 'Bebas Neue', cursive;
  font-size: 11px;
  letter-spacing: 5px;
  color: #fff;
  text-transform: uppercase;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 30px;
  gap: 20px;
  position: relative;
}

.marvel-logo {
  font-family: 'Bebas Neue', cursive;
  font-size: 36px;
  color: #fff;
  background: var(--marvel-red);
  padding: 4px 16px;
  letter-spacing: 3px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  text-shadow: 2px 2px 0 #000;
}

.header-title {
  text-align: center;
  flex: 1;
}

.header-title h1 {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(18px, 3vw, 28px);
  color: var(--marvel-white);
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
}

.header-title h1 span {
  color: var(--marvel-red);
}

.header-title p {
  font-size: 11px;
  color: var(--marvel-silver);
  letter-spacing: 3px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* ===== MAIN CONTAINER ===== */
.page-wrapper {
  position: relative;
  z-index: 5;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

/* ===== CARD / PANEL ===== */
.marvel-card {
  background: linear-gradient(145deg, var(--marvel-gray) 0%, #111 100%);
  border: 1px solid rgba(232,35,42,0.3);
  border-top: 3px solid var(--marvel-red);
  border-radius: 4px;
  padding: 40px;
  max-width: 720px;
  width: 100%;
  position: relative;
  box-shadow:
    0 0 60px rgba(232,35,42,0.1),
    0 20px 60px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.05);
  animation: cardReveal 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.marvel-card::before {
  content: '';
  position: absolute;
  top: -1px; left: 20px; right: 20px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--marvel-gold), transparent);
  opacity: 0.4;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0;
}

.step-dot {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: var(--marvel-light-gray);
  border: 2px solid rgba(232,35,42,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bebas Neue', cursive;
  font-size: 16px;
  color: var(--marvel-silver);
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  transition: all 0.3s ease;
  position: relative;
}

.step-dot.active {
  background: var(--marvel-red);
  border-color: var(--marvel-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(232,35,42,0.6);
}

.step-dot.done {
  background: var(--marvel-dark-red);
  border-color: var(--marvel-dark-red);
  color: #fff;
}

.step-dot.done::after {
  content: '✓';
  font-family: sans-serif;
  font-size: 14px;
}

.step-dot.done span { display: none; }

.step-line {
  width: 50px;
  height: 2px;
  background: rgba(232,35,42,0.2);
  transition: background 0.3s;
}

.step-line.done {
  background: var(--marvel-dark-red);
}

/* ===== SECTION TITLE ===== */
.section-badge {
  display: inline-block;
  background: var(--marvel-red);
  color: #fff;
  font-family: 'Bebas Neue', cursive;
  font-size: 11px;
  letter-spacing: 3px;
  padding: 3px 12px;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(24px, 4vw, 36px);
  color: var(--marvel-white);
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.section-title span { color: var(--marvel-red); }

.section-sub {
  font-size: 14px;
  color: var(--marvel-silver);
  letter-spacing: 1px;
  margin-bottom: 28px;
  border-left: 3px solid var(--marvel-red);
  padding-left: 12px;
  line-height: 1.5;
}

/* ===== FORM ELEMENTS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--marvel-silver);
  margin-bottom: 8px;
}

.form-label span.required {
  color: var(--marvel-red);
  margin-left: 4px;
}

.form-input, .form-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,35,42,0.25);
  border-bottom: 2px solid rgba(232,35,42,0.4);
  color: var(--marvel-white);
  padding: 12px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  outline: none;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.form-input:focus, .form-select:focus {
  border-color: var(--marvel-red);
  background: rgba(232,35,42,0.06);
  box-shadow: 0 0 20px rgba(232,35,42,0.15);
}

.form-select option {
  background: var(--marvel-gray);
  color: var(--marvel-white);
}

/* ===== RADIO / LIKERT SCALE ===== */
.likert-wrap {
  margin-bottom: 28px;
  padding: 18px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(232,35,42,0.15);
  border-left: 3px solid var(--marvel-red);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.likert-wrap:hover {
  border-color: rgba(232,35,42,0.4);
  border-left-color: var(--marvel-red);
  background: rgba(232,35,42,0.04);
}

.likert-question {
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--marvel-white);
  margin-bottom: 14px;
  line-height: 1.5;
}

.likert-num {
  color: var(--marvel-red);
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  margin-right: 8px;
}

.likert-options {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.likert-option {
  flex: 1;
  min-width: 0;
}

.likert-option input[type="radio"] {
  display: none;
}

.likert-option label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(232,35,42,0.2);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 2px;
  clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}

.likert-option label .opt-num {
  font-family: 'Bebas Neue', cursive;
  font-size: 20px;
  color: var(--marvel-silver);
  transition: color 0.2s;
}

.likert-option label .opt-text {
  font-size: 9px;
  letter-spacing: 0.5px;
  text-align: center;
  color: rgba(192,192,192,0.6);
  text-transform: uppercase;
  line-height: 1.2;
}

.likert-option input[type="radio"]:checked + label {
  background: var(--marvel-red);
  border-color: var(--marvel-red);
  box-shadow: 0 0 15px rgba(232,35,42,0.4);
}

.likert-option input[type="radio"]:checked + label .opt-num {
  color: #fff;
}

.likert-option input[type="radio"]:checked + label .opt-text {
  color: rgba(255,255,255,0.8);
}

.likert-option label:hover {
  background: rgba(232,35,42,0.15);
  border-color: var(--marvel-red);
}

/* Scale labels */
.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  padding: 0 2px;
}

.scale-labels span {
  font-size: 10px;
  color: rgba(192,192,192,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ===== BUTTON ===== */
.btn-marvel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--marvel-red);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-family: 'Bebas Neue', cursive;
  font-size: 18px;
  letter-spacing: 3px;
  cursor: pointer;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-marvel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.4s ease;
}

.btn-marvel:hover::before {
  transform: translateX(100%);
}

.btn-marvel:hover {
  background: var(--marvel-dark-red);
  box-shadow: 0 0 30px rgba(232,35,42,0.5), 0 8px 20px rgba(0,0,0,0.5);
  transform: translateY(-2px);
}

.btn-marvel:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  border: 2px solid rgba(232,35,42,0.4);
  color: var(--marvel-silver);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  padding: 12px 28px;
  font-family: 'Bebas Neue', cursive;
  font-size: 16px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--marvel-red);
  color: var(--marvel-white);
  background: rgba(232,35,42,0.1);
}

.btn-row {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== DECORATIVE ELEMENTS ===== */
.corner-decor {
  position: absolute;
  width: 30px;
  height: 30px;
  border-color: var(--marvel-red);
  border-style: solid;
  opacity: 0.3;
}

.corner-decor.top-left { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.corner-decor.top-right { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.corner-decor.bottom-left { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.corner-decor.bottom-right { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }

/* ===== DIVIDER ===== */
.marvel-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232,35,42,0.5), transparent);
  margin: 28px 0;
}

/* ===== FOOTER ===== */
.marvel-footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 20px;
  background: var(--marvel-dark);
  border-top: 1px solid rgba(232,35,42,0.2);
  font-size: 11px;
  color: rgba(192,192,192,0.4);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== ALERT / VALIDATION ===== */
.alert-error {
  background: rgba(232,35,42,0.1);
  border: 1px solid rgba(232,35,42,0.4);
  border-left: 3px solid var(--marvel-red);
  color: #ff6b6b;
  padding: 12px 16px;
  font-size: 13px;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  border-radius: 2px;
  display: none;
}

.alert-error.show { display: block; animation: shake 0.4s ease; }

@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ===== PROGRESS BAR ===== */
.progress-bar-wrap {
  background: rgba(255,255,255,0.05);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 30px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--marvel-dark-red), var(--marvel-red), var(--marvel-gold));
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 0 10px rgba(232,35,42,0.8);
}

/* ===== GRID LAYOUT ===== */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .likert-options { gap: 4px; }
  .likert-option label { padding: 8px 4px; }
  .header-main { flex-direction: column; gap: 10px; }
  .marvel-card { padding: 24px 18px; }
  .step-line { width: 28px; }
}

/* ===== THANK YOU PAGE SPECIAL ===== */
.thankyou-hero {
  text-align: center;
  padding: 20px 0 40px;
}

.shield-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  position: relative;
  animation: shieldFloat 3s ease-in-out infinite;
}

@keyframes shieldFloat {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.shield-icon svg { width: 100%; height: 100%; }

.thankyou-title {
  font-family: 'Bebas Neue', cursive;
  font-size: clamp(36px, 7vw, 60px);
  color: var(--marvel-white);
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: 8px;
}

.thankyou-title span { color: var(--marvel-red); }

.thankyou-msg {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--marvel-silver);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 32px;
}

.quote-box {
  background: rgba(232,35,42,0.08);
  border: 1px solid rgba(232,35,42,0.3);
  border-left: 4px solid var(--marvel-red);
  padding: 20px 24px;
  margin: 24px 0;
  position: relative;
  border-radius: 2px;
}

.quote-box::before {
  content: '"';
  font-family: 'Bebas Neue', cursive;
  font-size: 80px;
  color: var(--marvel-red);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 10px;
  line-height: 1;
}

.quote-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  color: var(--marvel-white);
  line-height: 1.7;
  font-style: italic;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}

/* Stars animation for thank you page */
.stars-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--marvel-gold);
  border-radius: 50%;
  animation: starFall linear infinite;
  opacity: 0;
}

@keyframes starFall {
  0% { transform: translateY(-20px) translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh) translateX(30px); opacity: 0; }
}