/* ============================================================
   Kohler Quiz Event — Custom CSS (Mobile First)
   Design: Premium Dark Navy + Gold Accent
   Font: Inter (Google Fonts)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --navy: #0D1F3C;
  --navy-light: #162847;
  --navy-mid: #1E3A5F;
  /* --gold: #C9A84C; */
  --gold: #A17DC1;
  /* --gold-light: #E8C96A; */
  --gold-light: #4192B3;
  --gold-dark: #A8892E;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --light-gray: #E8ECF0;
  --mid-gray: #9DA8B7;
  --text-dark: #1A2740;
  --text-body: #3A4A5C;
  --danger: #E53E3E;
  --success: #2ECC71;
  --warning: #F39C12;
  --card-shadow: 0 8px 32px rgba(13, 31, 60, 0.12);
  --card-radius: 16px;
  --btn-radius: 50px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--off-white);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Public Layout ────────────────────────────────────────── */
.public-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* background: linear-gradient(160deg, var(--navy) 0%, var(--navy-light) 50%, #0a1628 100%); */
  background-image: url('../../assets/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.public-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 40px;
}

/* ── Top Navigation Bar ───────────────────────────────────── */
.top-nav {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.top-nav-logo {
  height: 36px;
  object-fit: contain;
}

.top-nav-logo-landing {
  height: 240px;
  object-fit: contain;
}

.background-cembung {
  background: black;
  /* border-bottom-left-radius: 50% 20px; */
  /* border-bottom-right-radius: 50% 20px; */
  clip-path: ellipse(70% 60% at 50% 40%);
}

.top-nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.5px;
}

.top-nav-back {
  position: absolute;
  left: 20px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.top-nav-back:hover {
  color: var(--gold-light);
}

/* ── Page Card ────────────────────────────────────────────── */
.page-card {
  width: 100%;
  max-width: 480px;
  /* background: var(--white); */
  /* border-radius: var(--card-radius); */
  /* box-shadow: var(--card-shadow); */
  /* overflow: hidden; */
  /* margin-top: 16px; */
}



.page-card-header {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  padding: 28px 24px 24px;
  text-align: center;
}

.page-card-header h1 {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
}

.page-card-header .subtitle {
  /* color: var(--gold-light); */
  color: black;
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 6px;
}

.page-card-body {
  padding: 28px 24px;
}

/* ── Landing Page ─────────────────────────────────────────── */
.landing-hero {
  width: 100%;
  max-width: 480px;
  text-align: center;
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.landing-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: drop-shadow(0 4px 20px rgba(201, 168, 76, 0.4));
  animation: float 3s ease-in-out infinite;
}

.landing-logo-placeholder {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 8px 32px rgba(201, 168, 76, 0.4);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.landing-banner {
  width: 100%;
  max-width: 420px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.landing-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.landing-banner-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px solid rgba(201, 168, 76, 0.3);
}

.landing-banner-placeholder .banner-icon {
  font-size: 3rem;
}

.landing-banner-placeholder .banner-text {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.landing-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--black);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.landing-title span {
  color: var(--gold);
}

.landing-subtitle {
  font-size: 0.95rem;
  /* color: rgba(255, 255, 255, 0.7); */
  color: black;
  max-width: 320px;
  line-height: 1.6;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-kohler {
  background: linear-gradient(180deg, #4192B3, #A17DC1);
  color: white;
  padding: 5px 20px;
  border: 1px solid #000;
  border-radius: 8px;
}

.btn-kohler:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.55);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-kohler:active {
  transform: translateY(0);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  /* color: var(--navy) !important; */
  color: white !important;
  border: none;
  border-radius: var(--btn-radius);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.45);
  letter-spacing: 0.3px;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, 0.55);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--gold) !important;
  border: 2px solid var(--gold);
  border-radius: var(--btn-radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-gold-outline:hover {
  background: rgba(201, 168, 76, 0.1);
  transform: translateY(-1px);
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 28px;
  background: var(--navy);
  color: var(--white) !important;
  border: none;
  border-radius: var(--btn-radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

/* ── Rules Page ───────────────────────────────────────────── */
.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rules-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  background: var(--off-white);
  border-radius: 12px;
  border-left: 4px solid var(--gold);
}

.rules-num {
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: var(--navy);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
}

.rules-text {
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}

.prize-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.prize-table th {
  background: var(--navy);
  color: var(--gold);
  padding: 12px 16px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prize-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.prize-table tr:last-child td {
  border-bottom: none;
}

.prize-table tr:nth-child(even) td {
  /* background: var(--off-white); */
}

.prize-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.prize-badge.gold {
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold-dark);
}

/* ── Register Form ────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.form-label span {
  color: var(--danger);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix {
  position: absolute;
  left: 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mid-gray);
  pointer-events: none;
  user-select: none;
}

.form-control {
  width: 100%;
  padding: 14px 16px 14px 40px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-control.no-prefix {
  padding-left: 16px;
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.15);
}

.form-control::placeholder {
  color: var(--mid-gray);
}

.form-hint {
  font-size: 0.8rem;
  color: var(--mid-gray);
  margin-top: 6px;
}

/* ── Alert / Flash Messages ───────────────────────────────── */
.alert {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert-danger {
  background: rgba(229, 62, 62, 0.08);
  border: 1px solid rgba(229, 62, 62, 0.25);
  color: #C53030;
}

.alert-success {
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  color: #1E8449;
}

.alert-warning {
  background: rgba(243, 156, 18, 0.1);
  border: 1px solid rgba(243, 156, 18, 0.3);
  color: #B7770D;
}

/* ── Timer Bar ────────────────────────────────────────────── */
.timer-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: var(--navy);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.timer-label {
  font-size: 0.5rem;
  font-weight: 300;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timer-display {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  letter-spacing: 2px;
  transition: color 0.3s;
}

.timer-display.danger {
  color: var(--danger);
  animation: pulse 1s infinite;
}

.timer-display.warning {
  color: var(--warning);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.6;
  }
}

.timer-progress {
  height: 4px;
  background: var(--navy-mid);
  width: 100%;
}

.timer-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transition: width 1s linear, background 0.5s;
}

.timer-progress-bar.danger {
  background: linear-gradient(90deg, var(--danger) 0%, #FC8181 100%);
}

/* ── Quiz Page ────────────────────────────────────────────── */
.quiz-header {
  width: 100%;
  max-width: 520px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-progress {
  font-size: 0.85rem;
  /* color: rgba(255, 255, 255, 0.7); */
  color: black;
}

.quiz-progress strong {
  color: var(--gold);
}

.quiz-page-indicator {
  display: flex;
  gap: 6px;
}

.quiz-page-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.quiz-page-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

.quiz-page-dot.done {
  background: var(--success);
}

.question-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
  overflow: hidden;
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-number {
  padding: 14px 20px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--light-gray);
  background: linear-gradient(135deg, var(--off-white) 0%, var(--white) 100%);
}

.question-text {
  padding: 18px 20px 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
}

.question-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--light-gray);
}

.options-list {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-item {
  position: relative;
}

.option-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  color: var(--text-body);
  user-select: none;
  position: relative;
}

.option-label:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}

.option-indicator {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  border: 2px solid var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--mid-gray);
  transition: var(--transition);
  background: var(--off-white);
}

.option-item input:checked+.option-label {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

.option-item input:checked+.option-label .option-indicator {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ── Quiz Navigation ──────────────────────────────────────── */
.quiz-nav {
  width: 100%;
  max-width: 520px;
  padding: 0 0 32px;
}

/* ── Result Page ──────────────────────────────────────────── */
.result-card {
  width: 100%;
  max-width: 480px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  margin-top: 24px;
  animation: slideUp 0.6s ease forwards;
}

.result-header {
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy) 100%);
  padding: 32px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.result-score-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
}

.result-score-num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.result-score-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.result-name {
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 700;
}

.result-instagram {
  color: gold;
  font-size: 0.9rem;
  margin-top: 4px;
}

.result-body {
  padding: 28px 24px;
}

.result-prize-section {
  text-align: center;
  padding: 24px 20px;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06) 0%, rgba(201, 168, 76, 0.02) 100%);
  border-radius: 12px;
  border: 1px solid rgba(201, 168, 76, 0.2);
  margin-bottom: 24px;
}

.result-prize-emoji {
  font-size: 3rem;
  margin-bottom: 8px;
}

.result-prize-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mid-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.result-prize-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.result-prize-img {
  max-width: 160px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.result-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  font-size: 0.9rem;
}

.result-info-row:last-child {
  border-bottom: none;
}

.result-info-label {
  color: var(--mid-gray);
  font-size: 0.85rem;
}

.result-info-value {
  font-weight: 600;
  color: var(--text-dark);
}

.participant-code {
  display: inline-block;
  padding: 6px 16px;
  background: var(--navy);
  color: gold;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 2px;
  font-family: 'Courier New', monospace;
}

.timeout-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(229, 62, 62, 0.1);
  color: var(--danger);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.no-prize-msg {
  text-align: center;
  padding: 20px;
  color: var(--mid-gray);
  font-size: 0.9rem;
}

/* ── Confetti animation ───────────────────────────────────── */
.confetti-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

/* ── Offline / Status Page ────────────────────────────────── */
.offline-card {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 48px 32px;
  text-align: center;
  margin-top: 40px;
}

.offline-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.offline-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.offline-text {
  font-size: 0.95rem;
  color: var(--mid-gray);
  line-height: 1.6;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--light-gray);
  margin: 20px 0;
}

.divider-text {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mid-gray);
  /* position: relative; */
  margin: 20px 0;
}

.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--light-gray);
}

.divider-text::before {
  left: 0;
}

.divider-text::after {
  right: 0;
}

/* ── Utility ──────────────────────────────────────────────── */
.text-gold {
  color: var(--gold);
}

.text-navy {
  color: var(--navy);
}

.text-muted {
  color: var(--mid-gray);
}

.fw-800 {
  font-weight: 800;
}

.fw-700 {
  font-weight: 700;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (min-width: 480px) {
  .landing-title {
    font-size: 2.4rem;
  }

  .page-card-body {
    padding: 36px 32px;
  }

  .question-text {
    font-size: 1.05rem;
  }

  .option-label {
    padding: 16px 20px;
  }
}

@media (max-width: 375px) {
  .timer-display {
    font-size: 1.2rem;
  }

  .landing-title {
    font-size: 1.7rem;
  }

  .result-score-circle {
    width: 100px;
    height: 100px;
  }

  .result-score-num {
    font-size: 2rem;
  }
}