:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4fbf5;
  --text: #153726;
  --muted: #6e8677;
  --line: #dcebdd;
  --green: #1f9d55;
  --green-dark: #187543;
  --green-soft: #e8f7ed;
  --shadow: 0 24px 60px rgba(31, 157, 85, 0.10);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 157, 85, 0.10), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31, 157, 85, 0.08), transparent 24%),
    var(--bg);
}

.kiosk-body {
  background:
    radial-gradient(circle at top, rgba(31, 157, 85, 0.12), transparent 34%),
    linear-gradient(180deg, #f9fdf9 0%, #f3faf4 100%);
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  min-height: 100vh;
  max-width: 1220px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.page-shell-centered {
  display: grid;
  align-items: center;
  justify-items: center;
  align-content: center;
}

.kiosk-shell {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  min-height: 100vh;
  padding-top: 20px;
  padding-bottom: 20px;
}

.kiosk-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

.kiosk-logo img {
  width: min(420px, 92vw);
  height: auto;
}

.hero-panel,
.form-panel,
.config-panel {
  background: var(--surface);
  border: 1px solid rgba(31, 157, 85, 0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: center;
  padding: 32px;
  overflow: hidden;
}

.hero-panel-compact {
  grid-template-columns: 1fr;
}

.hero-copy h1,
.panel-heading h2,
.result-card h3 {
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.98;
  max-width: 10ch;
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 24px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-list li {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 500;
}

.hero-actions {
  margin-top: 24px;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 18px;
  border: 1px solid rgba(31, 157, 85, 0.18);
  background: var(--surface-soft);
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 157, 85, 0.12);
}

.full-width-link {
  width: 100%;
}

.ghost-button {
  border: 1px solid rgba(31, 157, 85, 0.18);
  border-radius: 18px;
  min-height: 52px;
  padding: 0 20px;
  background: var(--surface-soft);
  color: var(--green-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 157, 85, 0.12);
}

.ghost-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.hero-visual {
  background: linear-gradient(160deg, #f7fff8 0%, #ebf9ef 100%);
  border-radius: 24px;
  padding: 18px;
}

.form-panel {
  margin-top: 24px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 26px;
}

.form-panel-standalone {
  margin-top: 0;
  grid-template-columns: 1fr;
}

.kiosk-panel {
  min-height: auto;
  width: 100%;
  max-width: 516px;
  margin: 0 auto;
  align-content: center;
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(31, 157, 85, 0.10);
}

.config-panel {
  margin-top: 24px;
  padding: 30px;
}

.auth-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.75fr);
  gap: 26px;
}

.panel-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2 {
  margin-top: 4px;
  font-size: clamp(28px, 3vw, 38px);
}

.status-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 700;
  border: 1px solid rgba(31, 157, 85, 0.16);
}

.registration-form {
  display: grid;
  gap: 18px;
}

.registration-form label {
  display: grid;
  gap: 10px;
  font-weight: 600;
}

.registration-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.registration-form input:focus {
  outline: none;
  border-color: rgba(31, 157, 85, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.12);
  transform: translateY(-1px);
}

.registration-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  resize: vertical;
  min-height: 132px;
}

.registration-form textarea:focus {
  outline: none;
  border-color: rgba(31, 157, 85, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.12);
  transform: translateY(-1px);
}

.registration-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.registration-form select:focus {
  outline: none;
  border-color: rgba(31, 157, 85, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, 0.12);
  transform: translateY(-1px);
}

.registration-form input:disabled {
  background: #f3f5f4;
  color: #8b948f;
}

.registration-form textarea:disabled {
  background: #f3f5f4;
  color: #8b948f;
}

.phone-field {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
}

.phone-prefix {
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-weight: 700;
  color: var(--green-dark);
}

.checkbox-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  font-weight: 500;
  color: var(--muted);
}

.checkbox-row-compact {
  margin-top: -4px;
}

.checkbox-row input {
  margin: 2px 0 0;
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  padding: 0;
}

.primary-button {
  border: 0;
  border-radius: 18px;
  padding: 17px 22px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 16px 34px rgba(31, 157, 85, 0.22);
}

.primary-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled {
  opacity: 0.7;
  cursor: wait;
  transform: none;
}

.feedback {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 600;
}

.feedback-error {
  color: #c0392b;
}

.helper-text {
  margin: -8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.upload-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}

.upload-title {
  font-weight: 700;
  color: var(--green-dark);
}

.upload-helper {
  margin: 0;
}

.result-card {
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
  border: 1px solid var(--line);
  padding: 24px;
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

.result-media {
  margin: 18px 0 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.result-media img {
  width: 100%;
  height: auto;
}

.result-actions {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.result-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
  min-height: 56px;
}

.result-actions .ghost-link {
  width: 100%;
  min-height: 56px;
}

.result-grid {
  margin-bottom: 8px;
}

.result-card p {
  color: var(--muted);
  line-height: 1.7;
}

.result-grid {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.result-grid div {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface-soft);
}

.result-grid .wide {
  grid-column: 1 / -1;
}

.result-grid dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}

.result-grid dd {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.intro-gate {
  display: block;
}

.register-secondary-action {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.flyer-link {
  background: #f6c453;
  border-color: #d9a52d;
  color: #3d2b08;
  text-align: center;
}

.flyer-link:hover {
  background: #edb63d;
  box-shadow: 0 12px 24px rgba(161, 111, 10, 0.18);
}

.flyer-link:focus-visible {
  outline: 3px solid #825909;
  outline-offset: 3px;
}

.intro-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7fcf8 100%);
}

.intro-card h3 {
  margin: 0;
  font-size: clamp(28px, 5vw, 36px);
}

.intro-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.intro-actions {
  display: grid;
  gap: 12px;
}

.intro-card .ghost-button,
.intro-card .primary-button,
.intro-card .result-link-button {
  width: 100%;
}

.intro-steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}

.confirmation-panel {
  width: 100%;
  max-width: 720px;
}

.confirmation-hero {
  display: grid;
  gap: 14px;
}

.confirmation-hero h3 {
  margin: 0;
  font-size: clamp(36px, 7vw, 56px);
  line-height: 0.95;
}

.confirmation-visual {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.confirmation-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.confirmation-summary {
  margin-top: 20px;
}

.confirmation-steps {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

.confirmation-step {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: #fff;
}

.confirmation-step-primary {
  background: linear-gradient(180deg, #f7fcf8 0%, #eef9f1 100%);
  border-color: rgba(31, 157, 85, 0.22);
}

.confirmation-step-badge {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.confirmation-step-copy h4 {
  margin: 0 0 6px;
  font-size: 24px;
}

.confirmation-step-copy p {
  margin: 0;
}

.confirmation-action-primary,
.confirmation-action-secondary {
  width: 100%;
}

@media (max-width: 920px) {
  .hero-panel,
  .form-panel,
  .config-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 18px 14px 34px;
  }

  .hero-panel,
  .form-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .feature-list,
  .result-grid {
    grid-template-columns: 1fr;
  }

  .phone-field {
    grid-template-columns: 70px 1fr;
  }

  .kiosk-panel {
    min-height: auto;
    padding: 20px;
    border-radius: 24px;
  }
}
