:root {
  --navy: #1E1B3A;
  --purple: #6B2FF2;
  --grey: #EDEAE4;
  --white: #FFFFFF;
  --error: #D33A3A;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--grey);
  color: var(--navy);
  min-height: 100vh;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 20px 24px;
}

.top-bar {
  padding: 20px 0 12px;
  text-align: center;
}

.brand {
  font-weight: 700;
  font-size: 15px;
  color: var(--purple);
  letter-spacing: 0.02em;
}

.progress-track {
  background: var(--white);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-fill {
  background: var(--purple);
  height: 100%;
  width: 10%;
  transition: width 0.3s ease;
}

.progress-label {
  text-align: center;
  font-size: 13px;
  color: var(--navy);
  opacity: 0.65;
  margin: 8px 0 0;
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.question h1 {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 6px;
}

.question .hint {
  font-size: 14px;
  opacity: 0.65;
  margin: 0 0 20px;
}

.error-text {
  display: none;
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
}

.error-text.visible {
  display: block;
}

/* Text / tel / email inputs */
input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  font-size: 17px;
  padding: 16px;
  border: 2px solid #D8D4CC;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
  outline: none;
  border-color: var(--purple);
}

/* Card-style choice buttons (single select) */
.card-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-option {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 500;
  border: 2px solid #D8D4CC;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  min-height: 52px;
}

.card-option.selected {
  border-color: var(--purple);
  background: #F3EDFF;
  color: var(--purple);
}

/* Multi-select tags */
.tag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-option {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #D8D4CC;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  min-height: 48px;
}

.tag-option.selected {
  border-color: var(--purple);
  background: #F3EDFF;
  color: var(--purple);
}

.tag-option.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tag-count {
  text-align: center;
  font-size: 13px;
  opacity: 0.6;
  margin-top: 14px;
}

/* Checkbox list (accreditations) */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 2px solid #D8D4CC;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  min-height: 48px;
}

.check-option.selected {
  border-color: var(--purple);
  background: #F3EDFF;
}

.check-option input {
  width: 20px;
  height: 20px;
  accent-color: var(--purple);
  flex-shrink: 0;
}

/* File upload */
.file-drop {
  border: 2px dashed #C9C4B8;
  border-radius: var(--radius);
  padding: 28px 18px;
  text-align: center;
  background: var(--white);
  cursor: pointer;
}

.file-drop input {
  display: none;
}

.file-drop p {
  margin: 0;
  font-size: 15px;
  opacity: 0.7;
}

.file-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.file-preview {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #D8D4CC;
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.file-preview .remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(30,27,58,0.8);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.skip-row {
  text-align: center;
  margin-top: 16px;
}

.skip-link {
  background: none;
  border: none;
  color: var(--navy);
  opacity: 0.55;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
}

/* Nav buttons */
.nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  flex: 1;
  min-height: 52px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid #D8D4CC;
}

.btn-ghost:disabled {
  visibility: hidden;
}

/* Summary screen */
.summary-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-row {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  border: 2px solid #D8D4CC;
}

.summary-row .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.55;
  margin: 0 0 4px;
}

.summary-row .value {
  font-size: 15px;
  margin: 0;
  word-break: break-word;
}

@media (min-width: 600px) {
  .question h1 {
    font-size: 26px;
  }
}

/* Preview + plan selection (pay-before-publish) */
.site-preview {
  width: 100%;
  height: 460px;
  border: 1px solid rgba(30, 27, 58, 0.15);
  border-radius: var(--radius);
  background: var(--white);
  margin: 8px 0 20px;
}

.plan-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plan-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 16px;
  border: 2px solid rgba(30, 27, 58, 0.15);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.plan-card:hover {
  border-color: var(--purple);
}

.plan-card.selected {
  border-color: var(--purple);
  background: #F3EDFF;
}

.plan-card .plan-title {
  font-weight: 600;
  font-size: 15px;
}

.plan-card .plan-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
}

.plan-card .plan-note {
  font-size: 13px;
  opacity: 0.6;
}

.file-help {
  font-size: 13px;
  line-height: 1.5;
  color: var(--navy);
  opacity: 0.7;
  margin: 12px 0 0;
}

.file-help a {
  color: var(--purple);
  font-weight: 600;
}
