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

:root {
  --bg-color: #0D1B2A;
  --card-bg: #1B263B;
  --accent-color: #FF3B7A;
  --accent-hover: #E02863;
  --text-main: #E0E1DD;
  --text-muted: #8E9AAF;
  --border-color: #415A77;
  --border-radius: 24px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App container */
.app-container {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--bg-color);
  padding: 20px 16px;
  position: relative;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent-color);
}

.menu-dot {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
}

/* Step screens */
.step-screen {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  animation: fadeIn var(--transition-speed) ease-in-out forwards;
}

.step-screen.active {
  display: flex;
}

.actions {
  margin-top: auto;
  padding-bottom: 8px;
  /* Combined with container's 24px padding = exactly 32px from screen bottom */
}

h1,
h2,
h3,
h4,
h5,
h6,
button,
input,
select,
textarea,
a {
  font-family: 'Poppins', sans-serif;
}

/* Badge */
.badge {
  background-color: rgba(255, 59, 122, 0.1);
  color: var(--accent-color);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 59, 122, 0.2);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Title & Description */
h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

h1 span {
  color: var(--accent-color);
  position: relative;
}

.description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* Checklist Card Container */
.checklist-container {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 24px 20px;
  margin-bottom: 16px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

/* Check list */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.check-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: rgba(255, 59, 122, 0.15);
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Buttons */
.btn {
  width: 100%;
  padding: 16px 24px;
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--transition-speed), transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(255, 59, 122, 0.3);
}

.btn:hover {
  background-color: var(--accent-hover);
}

.btn:active {
  transform: scale(0.98);
}

/* Bottom note */
.bottom-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 24px;
}

.bottom-note a {
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  transition: color var(--transition-speed);
}

.bottom-note a:hover {
  color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

/* Step Header (Back button + Progress Bar) */
.step-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.btn-back {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

.progress-bar-container {
  flex-grow: 1;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 100px;
  transition: width 0.4s ease;
}

/* Step Subtitle */
.step-subtitle {
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* Form groups and Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.input-field {
  width: 100%;
  padding: 16px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-main);
  font-size: 16px;
  outline: none;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.input-field:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 59, 122, 0.15);
}

.input-field::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

/* Error text styling */
.error-msg {
  color: #ff4d4d;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
  display: none;
}

/* Custom Checkbox */
.consent-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-top: 24px;
  margin-bottom: 24px;
  user-select: none;
}

.consent-container input {
  display: none;
}

.custom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.consent-container input:checked+.custom-checkbox {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.custom-checkbox svg {
  width: 14px;
  height: 14px;
  color: #fff;
  display: none;
}

.consent-container input:checked+.custom-checkbox svg {
  display: block;
}

.consent-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-main);
}

.consent-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Secondary Cancel Link Button */
.btn-secondary-link {
  display: block;
  text-align: center;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 700;
  margin-top: 16px;
  cursor: pointer;
  width: 100%;
  transition: color var(--transition-speed);
  text-decoration: underline;
}

.btn-secondary-link:hover {
  color: var(--accent-color);
}

/* Secondary Outline Button */
.btn-outline {
  width: 100%;
  padding: 16px 24px;
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-speed), color var(--transition-speed), transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.btn-outline:hover {
  background-color: rgba(255, 59, 122, 0.05);
}

.btn-outline:active {
  transform: scale(0.98);
}

/* Camera Preview & Recording Screen styling */
.camera-container {
  width: 100%;
  height: 200px;
  /* Smaller as requested: "Camera kleiner" */
  background-color: #000;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.camera-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  /* Mirror camera */
  z-index: 1;
}

/* Live camera indicator in the middle of camera-container */
.live-camera-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px dashed rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 100px;
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  background-color: rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
}

/* Oval overlay in camera for face positioning */
.camera-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border: 2px dashed var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(13, 27, 42, 0.6);
  /* Dim surrounding area */
  z-index: 2;
}

/* Script Box */
.script-box {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.script-title {
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.script-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-main);
  font-weight: 500;
}

.script-text span {
  color: var(--accent-color);
  font-weight: 700;
}

/* Record Button UI */
.record-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 8px;
}

.btn-record {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 6px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s;
  box-shadow: 0 8px 24px rgba(255, 59, 122, 0.4);
}

.btn-record.recording {
  background-color: #ff4d4d;
  border-color: rgba(255, 255, 255, 0.1);
  animation: pulse 1.5s infinite;
}

.btn-record:active {
  transform: scale(0.95);
}

.record-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Review specific styling */
.review-checklist-card {
  background-color: rgba(46, 196, 182, 0.1);
  /* transparent teal bg */
  border: 1px dashed #2ec4b6;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
}

.review-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-checklist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.review-checklist-item .icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.review-checklist-item .icon.checked {
  background-color: #2ec4b6;
  color: #0D1B2A;
  font-size: 12px;
  font-weight: bold;
}

.review-checklist-item .icon.pending {
  border: 2px solid var(--text-muted);
  background-color: transparent;
  width: 22px;
  height: 22px;
}

.review-checklist-item .icon.error {
  background-color: rgba(255, 59, 122, 0.15);
  color: var(--accent-color);
  font-size: 13px;
  font-weight: bold;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 59, 122, 0.4);
}

/* Audio warning card below checklist */
.audio-warning-card {
  display: none;
  margin-top: 12px;
  background-color: rgba(255, 59, 122, 0.07);
  border: 1px solid rgba(255, 59, 122, 0.3);
  border-radius: 14px;
  padding: 12px 16px;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.audio-warning-card.visible {
  display: flex;
}

.audio-warning-card .audio-warning-icon {
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.video-placeholder-preview {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.03);
}

.video-placeholder-preview svg {
  margin-bottom: 8px;
  color: var(--text-main);
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 122, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 12px rgba(255, 59, 122, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 59, 122, 0);
  }
}

/* Dynamic Direction Cues inside Camera View */
.direction-cue {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translate(-50%, 0);
  background-color: rgba(13, 27, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 100px;
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.direction-cue.hidden {
  opacity: 0;
  transform: translate(-50%, 10px);
}

.cue-arrow-left {
  animation: bounce-left 1s infinite;
  color: var(--accent-color);
  font-size: 14px;
}

.cue-arrow-right {
  animation: bounce-right 1s infinite;
  color: var(--accent-color);
  font-size: 14px;
}

.cue-dot-center {
  width: 8px;
  height: 8px;
  background-color: #2ec4b6;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

@keyframes bounce-left {

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

  50% {
    transform: translateX(-4px);
  }
}

@keyframes bounce-right {

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

  50% {
    transform: translateX(4px);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }
}

/* Script Box Movement Instructions */
.movement-instruction-box {
  margin: 10px 0;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
  padding-left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.movement-instruction-item {
  display: none;
  /* Collapsed / hidden by default */
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  align-items: center;
  gap: 8px;
  transition: color 0.25s;
}

/* Show only the active step */
.movement-instruction-item.active {
  display: flex;
}

.movement-instruction-item .icon {
  font-size: 12px;
  transition: transform 0.25s;
}

.movement-instruction-item.active {
  color: var(--accent-color);
}

.movement-instruction-item.active .icon {
  color: var(--accent-color);
}

/* Bank Picker Styles */
.bank-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.bank-item {
  width: 100%;
  display: flex;
  align-items: center;
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  transition: transform 0.1s, background-color var(--transition-speed), border-color var(--transition-speed);
  outline: none;
}

.bank-item:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--border-color);
}

.bank-item:active {
  transform: scale(0.98);
}

.bank-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  margin-right: 16px;
  flex-shrink: 0;
}

.bank-name {
  font-size: 15px;
  font-weight: 700;
}

.bank-arrow {
  color: var(--text-muted);
  font-size: 20px;
  margin-left: auto;
  font-weight: 300;
}

/* Polling Spinner Styles */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 59, 122, 0.1);
  border-left-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Verified Card Styles */
.verified-card {
  background-color: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 24px 20px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.verified-label {
  color: var(--accent-color);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.verified-name-text {
  color: var(--text-main);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.verified-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verified-badge-idin,
.verified-badge-date {
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 100px;
}

.verified-badge-idin {
  background-color: rgba(46, 196, 182, 0.15);
  color: #2ec4b6;
  border: 1px solid rgba(46, 196, 182, 0.3);
}

.verified-badge-date {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-note-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Flexbox dynamic stretching for camera viewports */
#step-4a .step-content,
#step-4b .step-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

#camera-container-record {
  flex-grow: 1;
  min-height: 350px;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}

#camera-container-record .camera-overlay {
  top: 30%;
  /* Shift face guide higher */
  width: 170px;
  height: 220px;
  border-radius: 50%;
}

#camera-container-record .direction-cue {
  top: 12px;
  bottom: auto;
}

#script-box-overlay {
  position: absolute;
  bottom: 100px;
  left: 12px;
  right: 12px;
  background-color: rgba(13, 27, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 10;
  transition: opacity 0.3s ease;
}

#script-box-overlay.hidden {
  display: none !important;
}

#script-box-overlay .script-title {
  font-size: 10px;
  margin-bottom: 4px;
}

#script-box-overlay .script-text {
  font-size: 13px;
  line-height: 1.5;
}

#record-btn-container-overlay {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
}

/* Step 4b (Review Screen): Expand container downwards and checklist card in flow */
#camera-container-review {
  flex-grow: 1;
  min-height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  margin-bottom: 16px;
}