:root {
  --primary: #6c5ce7;
  --primary-dark: #4f3dc9;
  --accent: #ff6b9d;
  --accent-warm: #ffb86b;
  --bg: #fbf7ff;
  --card-bg: #ffffff;
  --text: #241f3d;
  --text-muted: #6b6580;
  --border: #e7e2f5;
  --radius-lg: 22px;
  --radius: 12px;
  --shadow: 0 20px 50px rgba(76, 63, 199, 0.14);
  --shadow-sm: 0 8px 24px rgba(76, 63, 199, 0.08);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body, html {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Inter', sans-serif;
  line-height: 1.2;
  margin: 0 0 12px;
}

p { line-height: 1.6; }

a { color: var(--primary); }

/* ---------- Generic card container (used by admin/login/status pages) ---------- */

.container {
  max-width: 560px;
  margin: 48px auto;
  padding: 28px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.container h1 {
  font-size: 1.6rem;
}

label {
  display: block;
  margin: 18px 0 8px;
  font-weight: 600;
  font-size: 0.92rem;
}

input, textarea, select, button {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-size: 1rem;
  box-sizing: border-box;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

textarea {
  resize: vertical;
}

button {
  margin-top: 20px;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 18px;
  box-shadow: 0 10px 24px rgba(108, 92, 231, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(108, 92, 231, 0.34);
}

button:disabled {
  background: #c9c4e0;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.status {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 12px;
  display: none;
}

.status.error {
  display: block;
  background: #fff0f0;
  color: #b3261e;
}

.status.success {
  display: block;
  background: #eefaf1;
  color: #1e7a34;
}

.warning-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff8ec;
  border: 1.5px solid var(--accent-warm);
  color: #8a5a00;
  font-size: 0.94rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

#paypal-button-container {
  margin-top: 20px;
}

.hidden {
  display: none !important;
}

.price-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ---------- Site header ---------- */

.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 40px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto 16px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-cta {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(108, 92, 231, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(108, 92, 231, 0.38);
}

.hero-note {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.occasion-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.occasion-chip {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Steps ---------- */

.steps-section {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 40px 20px;
}

.steps-section h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 36px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Packages ---------- */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.packages-grid--form {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.packages-grid--form .package-card label {
  padding: 20px 18px;
}

.package-card {
  position: relative;
}

.package-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-card label {
  display: block;
  margin: 0;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  cursor: pointer;
  height: 100%;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.package-card label:hover {
  transform: translateY(-2px);
}

.package-card input[type="radio"]:checked + label {
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(108, 92, 231, 0.22);
}

.package-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent));
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.package-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.package-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.package-features li {
  padding: 5px 0 5px 22px;
  position: relative;
}

.package-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ---------- Form field groups (chips, two-column rows) ---------- */

.field-label {
  font-weight: 600;
  font-size: 0.92rem;
  margin: 18px 0 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.form-row > div {
  min-width: 0;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice-chip {
  position: relative;
}

.choice-chip input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.choice-chip label {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.choice-chip label:hover {
  transform: translateY(-1px);
}

.choice-chip input[type="radio"]:checked + label {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
}

.choice-chip input[type="radio"]:focus-visible + label {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Order form section ---------- */

.order-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.order-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}

.order-card h2 {
  font-size: 1.4rem;
}

.order-card > p {
  color: var(--text-muted);
  margin-top: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Admin / status tables & cards (unchanged look, refreshed colors) ---------- */

table.orders {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

table.orders th, table.orders td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

table.orders th {
  background: #f7f5fc;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.badge-new { background: #fdf2d6; color: #8a6300; }
.badge-in_progress { background: #fdeccb; color: #a35b00; }
.badge-preview_ready { background: #e6e0fb; color: #5a35c9; }
.badge-paid { background: #e3ecff; color: #2a4ec9; }
.badge-ready { background: #dcf7e3; color: #1e7a34; }
.badge-delivered { background: #e2e2ee; color: #4c4c66; }
.badge-cancelled { background: #fadada; color: #a12828; }

.admin-wrap {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.detail-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.detail-card dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 8px 16px;
  margin: 0;
}

.detail-card dt {
  font-weight: 600;
  color: var(--text-muted);
}

.detail-card dd {
  margin: 0;
}

@media (max-width: 600px) {
  .detail-card dl {
    grid-template-columns: 1fr;
  }
  .detail-card dt {
    margin-top: 10px;
  }
}
