:root {
  --red: #c40000;
  --dark: #06111f;
  --gold: #d4af37;
  --cream: #fff8e6;
  --text: #241111;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #c40000, #ffd700);
  color: var(--text);
  overflow-x: hidden;
}

.shell {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.giftmoment-shell {
  width: 100%;
  min-height: 100vh;
}

.giftmoment-frame {
  display: block;
  width: 100%;
  min-height: 100vh;
  border: 0;
  background: #fff5f5;
}

.center-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.panel {
  width: 100%;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 22px 60px rgba(0,0,0,.22);
  padding: 24px;
}

.hero-panel { text-align: center; max-width: 560px; }
.logo { display: block; width: 112px; margin: 0 auto 12px; }
.brand-title, h1 { margin: 0; color: var(--red); font-size: 34px; font-weight: 900; text-align: center; }
.sub, .hero-panel p { text-align: center; color: #6b5b35; font-weight: 800; }

.form-grid { display: grid; gap: 10px; }
label { font-weight: 900; color: var(--red); margin-top: 6px; }
input, textarea, select {
  width: 100%;
  border: 1px solid #e8d8b8;
  border-radius: 14px;
  padding: 13px;
  font-size: 16px;
}

textarea { min-height: 92px; resize: vertical; }
details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 900; color: var(--red); }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-grid button {
  border: 1px solid rgba(196,0,0,.18);
  border-radius: 14px;
  padding: 12px 8px;
  background: #fff;
  color: var(--red);
  font-weight: 900;
  cursor: pointer;
}

.quick-grid button.active {
  background: var(--red);
  color: #fff;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 15px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
}

.btn.gold { background: #b8860b; }
.btn.dark { background: #111827; }
.actions { display: grid; gap: 10px; margin-top: 14px; }
.message-line { margin-top: 12px; color: #7a4b00; font-weight: 900; text-align: center; }

.gift-preview {
  width: 100%;
  margin: 16px auto;
  border-radius: 20px;
  overflow: hidden;
  background: var(--dark);
  border: 2px solid var(--gold);
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}

.gift-preview img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}

.breakdown {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 14px;
  border-radius: 16px;
  background: var(--cream);
  font-weight: 900;
}

.breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payment-panel, .success-panel { display: grid; gap: 10px; }

@media (max-width: 699px) {
  .shell { padding: 10px; }
  .panel { padding: 16px; border-radius: 20px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .gift-preview { max-width: 430px; }
  .gift-preview img { aspect-ratio: 4 / 5; }
}
