/* ===================================================
   PHISHING DEMO - J&T Express Clone
   HANYA UNTUK EDUKASI KEAMANAN SIBER - BSSN 2025
   =================================================== */

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

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

:root {
  --jnt-red:   #E8192C;
  --jnt-dark:  #1a1a2e;
  --jnt-gray:  #f5f6fa;
  --jnt-text:  #2c2c2c;
  --jnt-light: #ffffff;
  --radius:    12px;
  --shadow:    0 8px 32px rgba(0,0,0,0.12);
}

body {
  font-family: 'Inter', sans-serif;
  background: #f0f2f5;
  color: var(--jnt-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===========================
   HEADER
   =========================== */
.header {
  background: var(--jnt-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-img {
  height: 36px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ===========================
   MAIN WRAPPER
   =========================== */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(135deg, #f5f6fa 0%, #e8eaf6 100%);
}

/* ===========================
   CARD
   =========================== */
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
  position: relative;
}

/* ===========================
   STEPS
   =========================== */
.step { display: none; padding: 32px 28px; }
.step.active { display: block; }

/* ===== STEP 1 – RESI ===== */
.card-header { text-align: center; margin-bottom: 28px; }

.icon-box {
  font-size: 52px;
  margin-bottom: 12px;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.card-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--jnt-dark);
  margin-bottom: 6px;
}
.subtitle {
  font-size: 14px;
  color: #888;
}

.input-group { margin-bottom: 18px; }
.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #555;
}
.input-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  letter-spacing: 1px;
  transition: border-color .25s, box-shadow .25s;
  outline: none;
}
.input-group input:focus {
  border-color: var(--jnt-red);
  box-shadow: 0 0 0 4px rgba(232,25,44,0.12);
}

.notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #7a5c00;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 22px;
  line-height: 1.5;
}
.notice-icon { font-size: 16px; flex-shrink: 0; }

/* ===========================
   BUTTON
   =========================== */
.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #E8192C, #c0111f);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .2s;
  box-shadow: 0 4px 16px rgba(232,25,44,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(232,25,44,0.45);
  background: linear-gradient(135deg, #f01f35, #c0111f);
}
.btn-primary:active { transform: translateY(0); }

.secure-badge {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 18px;
  font-size: 12px;
  color: #aaa;
}

/* ===========================
   STEP 2 – LOADING
   =========================== */
.loading-area { text-align: center; padding: 16px 0; }

.spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid var(--jnt-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-area h2 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.loading-area p  { font-size: 13px; color: #888; margin-bottom: 20px; }

.progress-bar-wrap {
  background: #f0f0f0;
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 300px;
}
.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #E8192C, #ff6b6b);
  border-radius: 100px;
  transition: width 0.3s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--jnt-red);
  font-weight: 600;
  margin-top: 8px;
}

/* ===========================
   STEP 3 – RESULT
   =========================== */
.result-area { text-align: center; }
.result-area h2 { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: #1a1a2e; }

.result-icon {
  font-size: 56px;
  margin-bottom: 12px;
  line-height: 1;
}

.resi-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  text-align: left;
}
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-row span { color: #888; }
.info-row strong { color: #333; font-weight: 600; }

.status-badge {
  background: #fff3cd;
  color: #856404;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px !important;
}

.alert-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #7a5c00;
  margin-bottom: 18px;
  text-align: left;
  line-height: 1.5;
}

/* ===========================
   STEP 4 – DONE
   =========================== */
.done-area { text-align: center; padding: 16px 0; }
.done-area h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; color: #1a7a3a; }
.done-area p  { font-size: 14px; color: #666; margin-bottom: 20px; line-height: 1.6; }
.result-icon.done { font-size: 64px; }
.done-area .btn-primary { background: linear-gradient(135deg, #1a7a3a, #145c2c); box-shadow: 0 4px 16px rgba(26,122,58,0.35); }
.done-area .btn-primary:hover { box-shadow: 0 6px 22px rgba(26,122,58,0.45); background: linear-gradient(135deg, #1f9245, #145c2c); }
.terima-kasih {
  background: #e8f5e9;
  border-radius: 10px;
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #2e7d32;
  margin-bottom: 0;
}

/* ===========================
   EDU WATERMARK
   =========================== */
.edu-watermark {
  margin-top: 18px;
  font-size: 11px;
  color: #E8192C;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.7;
  text-align: center;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: #1a1a2e;
  color: #aaa;
  text-align: center;
  padding: 16px;
  font-size: 13px;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 480px) {
  .nav-links { display: none; }
  .card { border-radius: 14px; }
  .step { padding: 24px 18px; }
}
