:root {
  --bg: #ffffff;
  --bg-secondary: #121672;
  --ink: #121672;
  --ink-2: #4a5568;
  --accent-primary: #e42da4;
  --accent-secondary: #121672;
  --line: #e2e8f0;
  --ok: #137e57;
  --err: #b00020;
  --radius: 16px;
  --gap: 16px;
  --shadow: 0 4px 20px rgba(18, 22, 114, 0.08);
  --shadow-lg: 0 8px 30px rgba(18, 22, 114, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: #121672;
  color: var(--ink);
  font-family: Poppins, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  min-height: 100vh;
}

/* Layout wrapper */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .wrap {
    padding: 60px 20px;
  }
}

/* Header */
.header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 24px;
  margin-bottom: 0;
  border-bottom: none;
}

.logo {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  position: relative;
  flex: 0 0 100px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(228, 45, 164, 0.1);
  backdrop-filter: blur(10px);
}

.logo:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(228, 45, 164, 0.3);
  border-color: rgba(228, 45, 164, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.logo:active {
  transform: scale(1.05) translateY(0);
}

.logo img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
  transition: all 0.3s ease;
}

.logo:hover img {
  filter: drop-shadow(0 4px 12px rgba(228, 45, 164, 0.4));
}

.brand h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #ffffff;
}

.brand p {
  margin: 4px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

/* Card container */
.card {
  margin: 0;
  padding: 32px 24px;
  border: none;
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  position: relative;
}

@media (min-width: 768px) {
  .card {
    padding: 40px 48px;
  }
}

/* Form elements */
label {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink-2);
}

.req {
  color: var(--accent-primary);
  margin-left: 4px;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  outline: 0;
  background: var(--bg);
  color: var(--ink);
  transition: all 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 4px rgba(228, 45, 164, 0.1);
}

input::placeholder,
textarea::placeholder {
  color: #a0aec0;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

/* Grid utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gap);
}

@media (max-width: 800px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: var(--gap);
}

.hint {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 2px;
}

.note-top {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 14px;
}

/* Choice chips */
.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  background: var(--bg);
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: var(--accent-primary);
  background: rgba(228, 45, 164, 0.05);
}

.chip input {
  width: auto;
  height: auto;
  padding: 0;
  border: none;
  box-shadow: none;
  margin: 0;
}

.chip input:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

.chip input:checked ~ span,
.chip input:checked + span {
  color: var(--accent-primary);
  font-weight: 600;
}

.chip:has(input:checked) {
  border-color: var(--accent-primary);
  background: rgba(228, 45, 164, 0.1);
}

/* Steps header */
.steps-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.steps-head > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps-head strong {
  font-weight: 600;
  font-size: 24px;
  color: var(--ink);
}

.steps-head > div:first-child > div {
  font-size: 14px;
  color: var(--ink-2);
}

.step-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--accent-secondary);
  background: var(--accent-secondary);
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.step-pill:hover {
  background: rgba(18, 22, 114, 0.9);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(18, 22, 114, 0.4);
}

.step-pill:active {
  transform: translateY(0);
}

.step-pill-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.step-pill.active {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 0 2px rgba(228, 45, 164, 0.3);
}

.step-pill.active:hover {
  background: #c91d8f;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 16px rgba(228, 45, 164, 0.5), 0 0 0 2px rgba(228, 45, 164, 0.3);
  transform: translateY(-2px);
}

.step-pill.active .step-pill-dot {
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.step-pill.done {
  border-color: var(--accent-secondary);
  background: var(--accent-secondary);
  color: #ffffff;
  opacity: 0.8;
}

.step-pill.done:hover {
  background: rgba(18, 22, 114, 0.9);
  border-color: var(--accent-secondary);
  opacity: 1;
}

.step-pill.done .step-pill-dot {
  background: #ffffff;
}

/* Step content */
.step {
  display: none;
}

.step.active {
  display: block;
}

/* Actions */
.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.actions-left {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #c91d8f 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(228, 45, 164, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(228, 45, 164, 0.4);
}

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

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(228, 45, 164, 0.05);
}

#prevBtn {
  display: none;
}

.status-text {
  font-size: 12px;
  color: var(--ink-2);
  min-height: 16px;
}

/* Alerts */
.alert {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.alert.ok {
  background: #ecf8f3;
  color: #0b573c;
  border: 1px solid #c7e7d9;
}

.alert.err {
  background: #fdecec;
  color: #7a0b1a;
  border: 1px solid #f5c4cb;
}

/* Footer */
.footer {
  margin-top: 40px;
  padding: 24px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  flex-wrap: wrap;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

.footer a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Thank You Page */
.thank-you-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 40px 20px;
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thank-you-content {
  text-align: center;
  max-width: 600px;
  padding: 60px 40px;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.thank-you-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--accent-primary) 0%, #c91d8f 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ffffff;
  font-weight: bold;
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.thank-you-content h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-secondary);
  margin: 0 0 16px;
}

.thank-you-content p {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0 0 12px;
  line-height: 1.6;
}

.thank-you-subtitle {
  font-size: 16px;
  color: var(--ink-2);
  margin-bottom: 32px !important;
}

.thank-you-content .btn {
  margin-top: 8px;
}

/* File Upload Section */
.file-upload-section {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
}

.file-upload-btn span {
  font-size: 18px;
  line-height: 1;
}

.drive-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.drive-link:hover {
  color: var(--accent-primary);
}

.drive-link svg {
  flex-shrink: 0;
}

.file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.file-name {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
}

.file-size {
  color: var(--ink-2);
  font-size: 12px;
}

.file-remove {
  background: none;
  border: none;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.file-remove:hover {
  background: rgba(228, 45, 164, 0.1);
  color: var(--accent-primary);
}

/* Date Input Wrapper */
.date-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.date-input {
  width: 100%;
  padding-right: 45px;
}

.date-icon {
  position: absolute;
  right: 16px;
  pointer-events: none;
  font-size: 18px;
  opacity: 0.6;
}

/* Hide default date picker icon in some browsers */
.date-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  position: absolute;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
