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

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

:root {
  color-scheme: light;
  --brand-primary: #304daf;
  --brand-accent: #3c6aff;
  --bg-surface: #ffffff;
  --bg-shell: #223683;
  --text-primary: #101828;
  --text-secondary: #475467;
  --text-inverse: #ffffff;
  --border-subtle: #e5e7eb;
  --shadow-card: 0 24px 60px rgba(17, 24, 39, 0.18);
  --radius-card: 32px;
  --radius-input: 14px;
}

body {
  font-family: 'Nunito Sans';
  background: radial-gradient(circle at top, #3c63ff 0%, #223683 60%, #1e2b6f 100%);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 32px 16px;
  color: var(--text-primary);
}

.app-shell {
  position: relative;
  width: min(375px, 100%);
  min-height: 1026px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.star-layer {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 387 820"><defs><pattern id="p" width="48" height="48" patternUnits="userSpaceOnUse"><circle cx="4" cy="4" r="1" fill="rgba(255,255,255,0.28)"/><circle cx="24" cy="24" r="1" fill="rgba(255,255,255,0.18)"/><circle cx="44" cy="12" r="1" fill="rgba(255,255,255,0.24)"/></pattern></defs><rect width="387" height="820" fill="url(%23p)"/></svg>');
  opacity: 0.7;
  z-index: -1;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero {
  width: 100%;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 22px;

  .hero-copy[data-context="status"] {
    align-items: flex-start;
  }
}

.hero .status-secondary-btn {
  width: fit-content;
  align-self: flex-start;
  margin-top: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 14px 18px;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
  font-size: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 10px 20px rgba(15, 23, 42, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--text-inverse);
}

.brand-name {
  font-family: 'Nunito Sans';
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 13px;
  opacity: 0.75;
}

.hero-copy {
  color: var(--text-inverse);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-title {
  font-family: 'Nunito Sans';
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-title .wave {
  display: inline-block;
  animation: wave 2.4s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.55;
  max-width: 100%;
  opacity: 0.85;
  padding: 10px;
}

.card-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 32px 28px 36px;
  display: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.card.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.form-card {
  position: relative;
  overflow: hidden;
}

.form-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248, 250, 255, 0.92);
  backdrop-filter: blur(6px);
  border-radius: inherit;
  z-index: 2;
}

.form-loader.visible {
  display: flex;
}

.form-loader__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
  color: var(--text-primary);
}

.form-loader__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(60, 106, 255, 0.2);
  border-top-color: var(--brand-primary);
  animation: spin 0.9s linear infinite;
}

.form-loader__message {
  font-size: 14px;
  font-weight: 600;
  color: #475467;
  max-width: 220px;
}

.card-heading {
  font-family: 'Nunito Sans';
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--text-primary);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#visitorForm {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.field-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.field-group>.field {
  flex: 1 1 160px;
  min-width: 0;
}

.field-group--split>.field {
  flex-basis: calc(50% - 8px);
}

@media (max-width: 420px) {
  .field-group--split>.field {
    flex-basis: 100%;
  }
}

.field-label {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.optional {
  font-weight: 500;
  color: var(--text-secondary);
}

/* Required field asterisk */
.required {
  color: #ef4444;
  /* red */
  margin-left: 6px;
  font-weight: 700;
}

.field-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--border-subtle);
  font-family: 'Nunito Sans';
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background: rgba(248, 250, 255, 0.78);
  backdrop-filter: blur(2px);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field-input::placeholder {
  color: #98a2b3;
}

.field-input:focus {
  outline: none;
  border-color: rgba(60, 106, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(60, 106, 255, 0.16);
  background: #ffffff;
}

.field-hint {
  font-size: 12px;
  color: #94a3b8;
}

.field-input.select {
  appearance: none;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" fill="none" stroke="%23566a96" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 18px;
  padding-right: 48px;
}

.picker-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  background-image: none;
}

.picker-input:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.picker-input.has-value {
  background: #ffffff;
}

.picker-input__label {
  flex: 1;
  font-size: 15px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.picker-input__label.picker-input__placeholder {
  color: #98a2b3;
  font-weight: 500;
}

.picker-input__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23566a96" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.picker-input[aria-expanded="true"] .picker-input__icon {
  transform: rotate(180deg);
}

.picker-input.is-loading .picker-input__icon {
  background-image: none;
  border: 2px solid rgba(86, 106, 150, 0.32);
  border-top-color: var(--brand-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.picker-input:focus-visible {
  outline: none;
  border-color: rgba(60, 106, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(60, 106, 255, 0.16);
  background: #ffffff;
}

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

.section-divider {
  margin: 8px 0 -4px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #667085;
}

.dynamic-fields[hidden] {
  display: none;
}

.dynamic-fields {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(248, 250, 255, 0.78);
  border-radius: var(--radius-input);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
}

.checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand-primary);
}

.primary-btn,
.secondary-btn,
.link-btn {
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-family: 'Nunito Sans';
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn {
  width: 100%;
  color: var(--text-inverse);
  background: linear-gradient(135deg, #6370ff 0%, #4051ff 45%, #23317f 100%);
  box-shadow: 0 18px 40px rgba(52, 74, 172, 0.35);
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(37, 63, 176, 0.38);
}

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

.primary-btn.loading {
  pointer-events: none;
}

.primary-btn .btn-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  animation: spin 1s linear infinite;
  display: none;
}

.primary-btn.loading .btn-spinner {
  display: inline-block;
}

.primary-btn.loading span:first-child {
  opacity: 0.65;
}

.secondary-btn {
  width: 100%;
  background: rgba(60, 106, 255, 0.12);
  color: var(--brand-primary);
  border: 1px solid rgba(60, 106, 255, 0.25);
}

.primary-btn.ghost {
  background: transparent;
  color: var(--brand-primary);
  border: 1px solid rgba(60, 106, 255, 0.5);
  box-shadow: none;
}

.link-btn {
  background: transparent;
  color: var(--brand-primary);
  padding: 12px 0;
  box-shadow: none;
}

.status-card {
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.status-banner {
  background: linear-gradient(180deg, #2443d4 0%, #1a2f8c 100%);
  color: #ffffff;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 32px 28px 108px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.25);
}

.status-banner::after {
  content: '';
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.32), transparent 58%),
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.2), transparent 55%),
    radial-gradient(circle at 30% 90%, rgba(47, 128, 237, 0.3), transparent 60%);
  opacity: 0.55;
  pointer-events: none;
}

@media (max-width: 400px) {
  .status-banner {
    padding: 28px 22px 96px;
  }
}

.status-banner__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.status-banner__content {
  margin-top: 26px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}

.status-state-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05));
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.25);
}

.status-state-icon[data-tone="accepted"] {
  background: rgba(34, 197, 94, 0.25);
}

.status-state-icon[data-tone="completed"] {
  background: rgba(59, 130, 246, 0.25);
}

.status-state-icon[data-tone="rejected"] {
  background: rgba(239, 68, 68, 0.3);
}

.status-state-icon[data-tone="inprogress"] {
  background: rgba(96, 165, 250, 0.28);
}

.status-title {
  font-family: 'Nunito Sans';
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.status-subtitle {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.92);
}

.status-banner__message {
  font-size: 13px;
  line-height: 1.7;
  opacity: 0.78;
  max-width: 260px;
}

.status-panel {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  width: 350px;
  transform: translateX(-30px);
  margin: -86px 18px 20px;
  padding: 36px 24px 32px;
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.2);
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px);
}

/* Center the status panel on narrow screens (mobile) and remove left offset */
@media (max-width: 600px) {
  .status-panel {
    width: calc(100% - 36px);
    transform: none;
    margin: -76px auto 20px;
    left: auto;
    right: auto;
  }
}

/* @media (min-width: 600px) and (max-width: 1020px) {
  .status-panel {
    width: 100%;
    max-width: 720px;
    transform: none;
    margin: -76px auto 20px;
  }
} */

/* @media (max-width: 1024px) {
  .status-panel {
    width: calc(100% - 48px); 
    max-width: 560px; 
    transform: none;
    margin: -76px auto 20px auto;
    left: auto;
    right: auto;
  }
} */

.status-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(60, 106, 255, 0.08), rgba(255, 255, 255, 0.18));
  pointer-events: none;
  z-index: -1;
}

.status-data {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.status-data li {
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 250, 255, 0.95), rgba(226, 232, 240, 0.72));
  border: 1px solid rgba(226, 232, 240, 0.65);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

.status-data li::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.status-data li:hover::after {
  opacity: 1;
}

.status-data__label {
  font-size: 12px;
  font-family: 'Nunito Sans';
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #94a3b8;
}

.status-data__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  word-break: break-word;
  justify-self: end;
  position: relative;
  z-index: 1;
}

.status-data__value--pill {
  display: flex;
  justify-content: flex-end;
}

.pill {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(60, 106, 255, 0.12);
  color: var(--brand-primary);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.pill--pending {
  background: rgba(250, 204, 21, 0.16);
  color: #b45309;
}

.pill--accepted {
  background: rgba(34, 197, 94, 0.16);
  color: #047857;
}

.pill--completed {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.pill--rejected {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.pill--inprogress {
  background: rgba(96, 165, 250, 0.18);
  color: #1d4ed8;
}

.status-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.status-refresh-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px;
  font-family: 'Nunito Sans';
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, #3b5bff 0%, #1f3dd9 100%);
  box-shadow: 0 18px 34px rgba(37, 63, 176, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-refresh-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(36, 64, 191, 0.4);
}

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

.status-refresh-btn.loading {
  opacity: 0.7;
  cursor: wait;
  box-shadow: none;
}

.status-secondary-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: #1f3dd9;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* Status page button with better contrast for blue background */
.status-page-btn {
  width: 100%;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: transform 0.12s ease, background-color 0.12s ease;
  display: block;
}

.status-page-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 420px) {
  .status-page-btn {
    width: 100%;
    justify-content: center;
  }
}

.option-picker {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 140;
}

.option-picker.visible {
  display: flex;
}

.option-picker__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
}

.option-picker__dialog {
  position: relative;
  width: min(340px, 92%);
  background: #ffffff;
  border-radius: 24px;
  padding: 22px 20px 20px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.option-picker__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-picker__title {
  font-size: 18px;
  font-family: 'Nunito Sans';
  font-weight: 600;
  color: var(--text-primary);
}

.option-picker__close {
  border: none;
  background: rgba(241, 245, 255, 0.9);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: var(--text-primary);
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.option-picker__close:hover {
  background: rgba(216, 226, 255, 1);
  transform: translateY(-1px);
}

.option-picker__search input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(248, 250, 255, 0.82);
  font-size: 14px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.option-picker__search input:focus {
  outline: none;
  border-color: rgba(60, 106, 255, 0.9);
  box-shadow: 0 0 0 4px rgba(60, 106, 255, 0.16);
  background: #ffffff;
}

.option-picker__search input:disabled {
  opacity: 0.6;
  cursor: wait;
}

.option-picker__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
}

.option-picker__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.option-picker__list::-webkit-scrollbar {
  width: 6px;
}

.option-picker__list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.option-picker__list-item {
  width: 100%;
}

.option-picker__item {
  width: 100%;
  border: 1px solid rgba(226, 232, 240, 0.8);
  background: rgba(248, 250, 255, 0.92);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.option-picker__item:hover {
  border-color: rgba(60, 106, 255, 0.45);
  box-shadow: 0 12px 24px rgba(60, 106, 255, 0.18);
  transform: translateY(-1px);
}

.option-picker__item.is-selected {
  border-color: rgba(60, 106, 255, 0.92);
  box-shadow: 0 14px 28px rgba(60, 106, 255, 0.2);
  background: linear-gradient(135deg, rgba(99, 112, 255, 0.16) 0%, rgba(64, 81, 255, 0.06) 100%);
}

.option-picker__item-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.option-picker__item-sub {
  font-size: 12px;
  color: #6b7280;
}

.option-picker__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.option-picker__loading[hidden] {
  display: none;
}

.option-picker__spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid rgba(96, 125, 255, 0.2);
  border-top-color: var(--brand-primary);
  animation: spin 0.8s linear infinite;
}

.option-picker__empty {
  font-size: 13px;
  padding: 14px;
  text-align: center;
  border-radius: 14px;
  background: rgba(248, 250, 255, 0.92);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  color: #64748b;
}

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.overlay-card {
  width: min(320px, 90%);
  background: var(--bg-surface);
  border-radius: 26px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.status-icon.success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5ae27f 0%, #1eb972 100%);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 28px;
  align-self: center;
}

.overlay-copy {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Card base */
.success-card {
  position: relative;
  background: #ffffff;
  color: #111827;
  padding: 40px 28px 28px;
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.25);
  overflow: hidden;
}

/* Remove radial backgrounds */
.success-card::before {
  display: none;
}

/* Header */
.success-card__header {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

/* Green Success Icon */
.success-card .status-icon.success {
  width: 64px;
  height: 64px;
  font-size: 30px;
  border-radius: 50%;
  background: #22c55e; /* flat green */
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 18px rgba(34, 197, 94, 0.35);
}

/* Content Text */
.success-card__content {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.success-card__eyebrow {
  display: none; /* remove "REQUEST SUBMITTED" small text */
}

.success-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
}

.success-card .overlay-copy {
  font-size: 15px;
  color: #374151;
}

/* Action buttons */
.success-card__actions {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.primary-btn {
  padding: 14px 18px;
  border-radius: 10px;
  background: #1d4ed8; /* Bold Blue */
  color: white;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.primary-btn:hover {
  background: #2563eb;
}

/* Ghost Secondary Button */
.primary-btn.ghost {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #111827;
  box-shadow: none;
}

.primary-btn.ghost:hover {
  background: #f3f4f6;
}


.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 24, 40, 0.9);
  color: #ffffff;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 14px;
  letter-spacing: -0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, -8px);
}

.toast[data-tone="warn"] {
  background: rgba(234, 179, 8, 0.92);
  color: #1f2937;
}

.toast[data-tone="error"] {
  background: rgba(239, 68, 68, 0.92);
}

.toast[data-tone="info"] {
  background: rgba(59, 130, 246, 0.92);
}

.brand-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 768px) {
  body {
    align-items: center;
  }

  .app-shell {
    width: 420px;
    min-height: auto;
    gap: 32px;
  }

  .card {
    padding: 38px 32px 44px;
  }

  .hero-title {
    font-size: 24px;
  }

  .status-panel {
    margin: -96px 32px 0;
    padding: 32px 28px 40px;
  }

  .status-banner__message {
    max-width: 340px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 20px 12px;
  }

  .card {
    padding: 28px 22px 32px;
  }

  .hero-title {
    font-size: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes wave {

  0%,
  100% {
    transform: rotate(0deg);
  }

  12% {
    transform: rotate(16deg);
  }

  25% {
    transform: rotate(-8deg);
  }

  37% {
    transform: rotate(12deg);
  }

  50% {
    transform: rotate(-4deg);
  }

  62% {
    transform: rotate(8deg);
  }

  75% {
    transform: rotate(0deg);
  }

  87% {
    transform: rotate(6deg);
  }
}

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

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