:root {
  --icpak-gold: #cca92c;          /* Primary buttons, active stepper, focus borders */
  --icpak-gold-dark: #b89520;     /* Active tap state */
  --icpak-teal: #209b8f;          /* START NEW VERIFICATION border/text & scan CTA */
  --icpak-teal-dark: #177a70;
  --icpak-bg-ivory: #fefee4;      /* Page background (pale warm cream) */
  --icpak-card-white: #ffffff;    /* Main card container */
  --icpak-text-dark: #000000;     /* Page title, headings */
  --icpak-text-body: #1f2937;     /* Input text, primary descriptions */
  --icpak-text-muted: #6b7280;    /* Subtitles, labels, hints */
  --icpak-border-gray: #d1d5db;   /* Default input borders */
  --icpak-stepper-gray: #b1afaa;  /* Inactive stepper circle */
  --icpak-error-red: #c00029;     /* Error border, error icon, error text */
  --icpak-success-bg: #e3f2e5;    /* Step 3 success banner background */
  --icpak-success-text: #1eb03c;  /* Step 3 success banner text and icon */
  --icpak-toast-green: #3dce54;   /* Step 2 toast background */
  --icpak-badge-green: #28a745;   /* Hourly resends badge */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--icpak-bg-ivory);
  font-family: var(--font-family);
  color: var(--icpak-text-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 16px 48px 16px;
}

.app-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Top Logo & Header */
.header-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 20px;
  width: 100%;
}

.icpak-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.header-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--icpak-text-dark);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

/* Main Card */
.card-container {
  background: var(--icpak-card-white);
  border-radius: 12px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  padding: 24px 20px 28px 20px;
  position: relative;
  margin-bottom: 18px;
}

/* 2-Tier Stepper */
.stepper-container {
  width: 100%;
  margin-bottom: 28px;
}

.stepper-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-bottom: 14px;
}

.stepper-row-top::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 18%;
  right: 18%;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
  width: 45%;
  text-align: center;
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--icpak-stepper-gray);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 6px;
  transition: all 0.25s ease;
}

.step-circle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.step-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--icpak-text-muted);
  transition: all 0.25s ease;
}

.step-item.active .step-circle,
.step-item.completed .step-circle {
  background: var(--icpak-gold);
}

.step-item.active .step-label,
.step-item.completed .step-label {
  color: var(--icpak-gold);
  font-weight: 600;
}

/* Stepper Tier 2 (View Results) */
.stepper-row-bottom {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 4px;
}

.stepper-row-bottom::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: #e5e7eb;
  z-index: 1;
}

.stepper-row-bottom .step-item {
  width: auto;
}

/* Form & Section Titles */
.section-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--icpak-text-dark);
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--icpak-text-muted);
  line-height: 1.45;
  margin-bottom: 22px;
}

/* Form Fields */
.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.required-star {
  color: var(--icpak-gold);
  font-weight: bold;
}

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

.form-control {
  width: 100%;
  height: 48px;
  padding: 10px 14px;
  padding-right: 42px;
  font-size: 15px;
  font-family: inherit;
  color: var(--icpak-text-body);
  background: #ffffff;
  border: 1.5px solid var(--icpak-border-gray);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--icpak-gold);
}

.form-control.locked {
  background-color: #fafafa;
  color: #4b5563;
  font-weight: 500;
  cursor: not-allowed;
}

.form-control.is-invalid {
  border-color: var(--icpak-error-red) !important;
}

.input-icon-right {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.input-icon-right svg {
  width: 18px;
  height: 18px;
}

.icon-lock {
  fill: var(--icpak-gold);
}

.icon-chevron {
  fill: #4b5563;
}

.icon-error {
  fill: var(--icpak-error-red);
}

.helper-text {
  font-size: 12px;
  color: var(--icpak-text-muted);
  margin-top: 5px;
  line-height: 1.35;
}

.error-text {
  font-size: 12px;
  color: var(--icpak-error-red);
  margin-top: 5px;
  display: none;
  font-weight: 400;
}

.form-group.has-error .error-text {
  display: block;
}

/* Primary Action Buttons */
.btn-primary {
  width: 100%;
  height: 48px;
  background: var(--icpak-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  transition: background 0.2s ease;
}

.btn-primary:active {
  background: var(--icpak-gold-dark);
}

/* Dual Button Row (Step 2) */
.btn-group-dual {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.btn-back {
  flex: 1;
  height: 48px;
  background: transparent;
  color: var(--icpak-gold);
  border: 1.5px solid var(--icpak-gold);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-verify {
  flex: 1.4;
  height: 48px;
  background: var(--icpak-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Resend Section (Step 2) */
.resend-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
  text-align: center;
}

.btn-resend-link {
  background: none;
  border: none;
  color: var(--icpak-gold);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  margin-bottom: 10px;
}

.resend-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.badge-pill-green {
  background: var(--icpak-badge-green);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}

.resend-limit-text {
  font-size: 13px;
  color: #374151;
}

.countdown-timer-text {
  font-size: 12.5px;
  color: var(--icpak-text-muted);
}

/* Toast Notification (Step 2) */
.toast-banner {
  position: fixed;
  bottom: 20px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--icpak-toast-green);
  color: #ffffff;
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 1000;
  transform: translateY(150%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-banner.show {
  transform: translateY(0);
}

.toast-banner svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
  flex-shrink: 0;
}

.toast-banner span {
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
}

/* Simulated iOS / Mobile Push SMS Notification Banner */
.ios-push-notification {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transform: translateY(-160%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ios-push-notification.show {
  transform: translateY(0);
}

.push-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.push-sender-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.push-avatar {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--icpak-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
}

.push-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.push-time {
  font-size: 11px;
  color: #9ca3af;
}

.push-body {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.35;
}

.push-body strong {
  color: #111827;
}

.push-hint {
  font-size: 10px;
  color: var(--icpak-gold);
  font-weight: 600;
  margin-top: 4px;
}

/* Modal Action Sheet (Verifier Type) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.action-sheet {
  background: #ffffff;
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: modalPop 0.25s ease-out;
}

@keyframes modalPop {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.action-sheet-header {
  background: var(--icpak-gold);
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.action-sheet-option {
  padding: 15px 18px;
  font-size: 15px;
  color: #1f2937;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.15s ease;
}

.action-sheet-option:hover,
.action-sheet-option:active {
  background: #fdfae8;
}

.action-sheet-option:last-child {
  border-bottom: none;
}

/* Step 3: View Results Components */
.success-banner {
  background: var(--icpak-success-bg);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.success-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--icpak-success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.success-icon-wrap svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.success-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--icpak-success-text);
  line-height: 1.25;
}

.audit-details-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 18px 18px 22px 18px;
  margin-bottom: 22px;
}

.audit-details-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.audit-data-row {
  margin-bottom: 14px;
}

.audit-data-row:last-child {
  margin-bottom: 0;
}

.audit-data-label {
  font-size: 13px;
  color: var(--icpak-text-muted);
  margin-bottom: 3px;
}

.audit-data-value {
  font-size: 15.5px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

/* Whistleblower / Report Section */
.report-card {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.report-notice-text {
  font-size: 13.5px;
  color: #374151;
  line-height: 1.45;
  margin-bottom: 14px;
}

.textarea-control {
  width: 100%;
  height: 96px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 1.5px solid var(--icpak-border-gray);
  border-radius: 6px;
  outline: none;
  resize: none;
  margin-bottom: 12px;
}

.textarea-control:focus {
  border-color: var(--icpak-gold);
}

.btn-submit-report {
  width: 100%;
  height: 46px;
  background: var(--icpak-gold);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.btn-start-new {
  width: 100%;
  height: 48px;
  background: #ffffff;
  color: var(--icpak-teal);
  border: 2px solid var(--icpak-teal);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-start-new:active {
  background: #f0fdf4;
}

/* Spinner Animation */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* View Step Switching */
.step-view {
  display: none;
}

.step-view.active {
  display: block;
}

/* Footer note */
.portal-footer {
  text-align: center;
  font-size: 11px;
  color: var(--icpak-text-muted);
  margin-top: 14px;
  line-height: 1.4;
}
