:root {
  --primary: #6C5CE7;
  --primary-dark: #5541D7;
  --primary-light: #A99BFF;
  --accent: #FFB020;
  --accent-dark: #E8990A;
  --teal: #00C2A8;
  --bg-top: #F4F1FF;
  --bg-bottom: #FFF6E8;
  --card: #ffffff;
  --border: #E7E3FA;
  --text: #241F3D;
  --text-muted: #6E6A85;
  --danger: #F1493F;
  --danger-dark: #D93A31;
  --success: #16B368;
  --success-dark: #0E9457;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 16px rgba(108, 92, 231, 0.08);
  --shadow-lg: 0 12px 32px rgba(108, 92, 231, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

.page {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 16px 64px;
}

.hero {
  background: linear-gradient(120deg, var(--primary) 0%, #8B7CF6 100%);
  color: white;
  border-radius: 0 0 28px 28px;
  padding: 36px 20px 32px;
  margin: 0 -16px 24px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.hero .emoji { font-size: 36px; display: block; margin-bottom: 8px; }
.hero .hero-logo { height: 56px; display: block; margin: 0 auto 12px; }
.hero .card-logo { height: 90px; display: block; margin: 0 auto 10px; border-radius: 10px; }
.hero h1 { font-size: 24px; margin: 0 0 8px; font-weight: 800; }
.hero p { margin: 0 auto; color: rgba(255,255,255,0.9); font-size: 15px; max-width: 100%; white-space: nowrap; }

@media (max-width: 480px) {
  .hero p { white-space: normal; font-size: 13.5px; max-width: 320px; }
}
.hero .perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 14px;
}

h1 { font-size: 22px; margin-bottom: 4px; }
h2 { font-size: 17px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
p.subtitle { color: var(--text-muted); margin-top: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.card .section-hint { color: var(--text-muted); font-size: 13px; margin: 0 0 14px; }

label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.hint { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  margin-bottom: 14px;
  background: #FBFAFF;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
  background: white;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  background: #F8F7FF;
  border-radius: var(--radius-sm);
  padding: 14px;
}
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); }
.checkbox-row label { font-weight: 400; font-size: 13.5px; color: var(--text-muted); }

button {
  font-size: 15px;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.08s, box-shadow 0.15s, background 0.15s;
}
button:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  width: 100%;
  box-shadow: 0 6px 16px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(108, 92, 231, 0.45); }
.btn-primary:disabled { background: #C7C1EE; box-shadow: none; cursor: not-allowed; }

.btn-secondary {
  background: white;
  border: 1.5px solid var(--primary-light);
  color: var(--primary-dark);
  width: 100%;
}
.btn-secondary:hover { background: #F4F1FF; }

.btn-danger { background: white; border: 1.5px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: #FEF0EF; }

.btn-success {
  background: linear-gradient(120deg, var(--success) 0%, var(--success-dark) 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(22, 179, 104, 0.35);
}

.card-group {
  border: 1.5px dashed var(--primary-light);
  background: #FBFAFF;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
}
.card-group .remove-card {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
.photo-thumb {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  border: 2px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  padding: 0;
  line-height: 18px;
  border-radius: 50%;
  background: rgba(36,31,61,0.7);
  color: white;
  font-size: 12px;
}

.error-banner {
  background: #FEECEB;
  border: 1.5px solid var(--danger);
  color: var(--danger-dark);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.success-banner {
  background: #E8FBF1;
  border: 1.5px solid var(--success);
  color: var(--success-dark);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

.offer-amount {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin: 8px 0;
  background: linear-gradient(120deg, var(--primary) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.countdown {
  text-align: center;
  color: var(--accent-dark);
  background: #FFF6E2;
  border-radius: 999px;
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 auto 16px;
  display: block;
  width: fit-content;
}

.action-row { display: flex; gap: 10px; margin-top: 14px; }
.action-row button { flex: 1; }

.hidden { display: none !important; }
