@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&family=DM+Serif+Display&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  70%       { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 4px 20px rgba(30,42,110,0.3); }
  50%       { box-shadow: 0 8px 36px rgba(30,42,110,0.55); }
}
@keyframes checkPop {
  0%   { transform: scale(0) rotate(-20deg); }
  70%  { transform: scale(1.3) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}
@keyframes stockFlash {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes mascotSlide {
  0%   { transform: translateX(100px) rotate(10deg); opacity: 0; }
  60%  { transform: translateX(-5px) rotate(-2deg); opacity: 1; }
  80%  { transform: translateX(3px) rotate(1deg); }
  100% { transform: translateX(0) rotate(0); opacity: 1; }
}
@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%       { transform: translateY(-6px) rotate(-3deg); }
  75%       { transform: translateY(-3px) rotate(2deg); }
}
@keyframes speechPop {
  0%   { transform: scale(0) translateY(10px); opacity: 0; }
  70%  { transform: scale(1.05) translateY(-2px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes confettiFall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(140px) rotate(720deg); opacity: 0; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ── Base ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #f4f5fb;
  color: #1e2a6e;
}

/* ── Section ─────────────────────────────────────────────── */
.s-form {
  background-color: #f4f5fb;
  padding-top: 2rem;
}

/* ── Order Card ──────────────────────────────────────────── */
.order-card {
  background: #fff;
  border: 1px solid #e2e4f0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(30,42,110,0.08);
  animation: fadeUp 0.45s ease both;
}

/* ── Header ──────────────────────────────────────────────── */
.order-header {
  background: #1e2a6e;
  padding: 1.75rem 2rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.order-header-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.order-header-orb.a { width: 200px; height: 200px; top: -80px; right: -60px; }
.order-header-orb.b { width: 120px; height: 120px; bottom: -40px; left: -30px; }

.order-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 8px;
}
.order-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: #fff;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}
.order-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}
.stars-row {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.stars { color: #f5c842; font-size: 14px; }
.stars-txt { font-size: 11px; color: rgba(255,255,255,0.35); }

/* ── Body ────────────────────────────────────────────────── */
.order-body {
  padding: 1.5rem 1.75rem 2rem;
}

/* ── Section label ───────────────────────────────────────── */
.sec-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #adb2cc;
  margin-bottom: 10px;
}
.mt-form { margin-top: 1.5rem; }

/* ── Package area ────────────────────────────────────────── */
.pkg-area {
  position: relative;
  overflow: hidden;
}

.pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ── Package card ────────────────────────────────────────── */
.pkg {
  background: #f8f9ff;
  border: 1.5px solid #e2e4f0;
  border-radius: 14px;
  padding: 14px 13px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.4s ease both;
}
.pkg:nth-child(2) { animation-delay: 0.05s; }
.pkg:nth-child(3) { animation-delay: 0.1s; }
.pkg:nth-child(4) { animation-delay: 0.15s; }

.pkg:hover:not(.pkg-hero) {
  border-color: #a0adf0;
  transform: translateY(-2px);
}

.pkg-radio { display: none; }

.pkg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e2a6e, #4a62e0);
  opacity: 0;
  transition: opacity 0.2s;
}
.pkg.sel .pkg-overlay { opacity: 1; }

.pkg-inner { position: relative; z-index: 1; }

.chk {
  opacity: 0;
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #1e2a6e;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.pkg.sel .chk {
  opacity: 1;
  animation: checkPop 0.25s ease both;
}

.pkg-qty { font-size: 11px; color: #adb2cc; margin-bottom: 4px; transition: color 0.2s; }
.pkg-price-row { display: flex; align-items: baseline; gap: 4px; }
.pkg-price { font-size: 22px; font-weight: 600; color: #1e2a6e; transition: color 0.2s; }
.pkg-old { font-size: 11px; color: #d0d3e8; text-decoration: line-through; }
.pkg-ship { font-size: 10px; color: #d0d3e8; margin-top: 4px; transition: color 0.2s; }

.pkg.sel .pkg-qty,
.pkg.sel .pkg-price,
.pkg.sel .pkg-ship { color: rgba(255,255,255,0.85); }
.pkg.sel .pkg-price { color: #fff; }
.pkg.sel .pkg-old { color: rgba(255,255,255,0.3); }

/* ── Hero (3'lü) package ─────────────────────────────────── */
.pkg-hero {
  grid-column: 1 / -1;
  border: 2px solid #1e2a6e;
  background: #fff;
  box-shadow: 0 8px 32px rgba(30,42,110,0.14);
  animation: heroFloat 3s ease-in-out 0.5s infinite, fadeUp 0.4s ease both;
}
.pkg-hero:hover {
  box-shadow: 0 12px 40px rgba(30,42,110,0.22);
  transform: translateY(-3px);
}
.pkg-hero.sel { border-color: #1e2a6e; }
.pkg-hero.sel .pkg-overlay {
  background: linear-gradient(135deg, #1e2a6e, #3d52c4);
  opacity: 1;
}

.hero-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

.hero-badge {
  display: inline-block;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  animation: badgePulse 1.8s infinite;
}

.hero-save {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid #fde68a;
  transition: all 0.2s;
}
.pkg-hero.sel .hero-save {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.3);
}

.hero-body { display: flex; align-items: center; justify-content: space-between; }
.hero-left {}
.hero-qty { font-size: 12px; color: #adb2cc; margin-bottom: 2px; transition: color 0.2s; }
.pkg-hero.sel .hero-qty { color: rgba(255,255,255,0.65); }

.hero-price-row { display: flex; align-items: baseline; gap: 2px; }
.hero-price { font-size: 30px; font-weight: 700; color: #1e2a6e; transition: color 0.2s; letter-spacing: -1px; }
.pkg-hero.sel .hero-price { color: #fff; }
.hero-per { font-size: 11px; color: #adb2cc; transition: color 0.2s; }
.pkg-hero.sel .hero-per { color: rgba(255,255,255,0.5); }

.hero-stock {
  font-size: 10px;
  color: #ef4444;
  font-weight: 500;
  margin-top: 5px;
  animation: stockFlash 1.8s infinite;
}
.pkg-hero.sel .hero-stock { color: #fca5a5; }

.hero-right { text-align: right; }
.hero-old { font-size: 13px; color: #d0d3e8; text-decoration: line-through; margin-bottom: 3px; }
.hero-ship { font-size: 11px; color: #adb2cc; transition: color 0.2s; }
.pkg-hero.sel .hero-ship { color: rgba(255,255,255,0.6); }

/* ── Mascot ──────────────────────────────────────────────── */
.mascot-wrap {
  position: absolute;
  right: -100px;
  bottom: 0;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}
.mascot-wrap.visible {
  right: 0;
  animation: mascotSlide 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.mascot-wrap.bounce {
  right: 0;
  animation: mascotBounce 1.5s ease-in-out infinite;
}

.mascot-img {
  display: block;
  width: 80px;
  height: 160px;
  object-fit: cover;
  object-position: top center;
  border-radius: 10px 10px 0 0;
}

.speech {
  position: absolute;
  right: 86px;
  bottom: 60px;
  background: #fff;
  border: 1.5px solid #e2e4f0;
  border-radius: 12px;
  border-bottom-right-radius: 2px;
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 600;
  color: #1e2a6e;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30,42,110,0.12);
  opacity: 0;
  pointer-events: none;
}
.speech.visible {
  opacity: 1;
  animation: speechPop 0.35s cubic-bezier(0.22,1,0.36,1) 0.45s both;
}
.speech::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: 8px;
  border: 7px solid transparent;
  border-left-color: #e2e4f0;
}
.speech::before {
  content: '';
  position: absolute;
  right: -6px;
  bottom: 9px;
  border: 6px solid transparent;
  border-left-color: #fff;
  z-index: 1;
}

/* ── Confetti ────────────────────────────────────────────── */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 20;
}
.conf-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 8px;
  opacity: 0;
}
.conf-piece.active {
  animation: confettiFall 0.9s ease forwards;
}

/* ── Form inputs ─────────────────────────────────────────── */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fg {
  margin-bottom: 10px;
  animation: slideInLeft 0.4s ease both;
}

.fg label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #adb2cc;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.fg input,
.fg select,
.fg textarea {
  width: 100%;
  background: #f8f9ff;
  border: 1.5px solid #e2e4f0;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: #1e2a6e;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.fg input::placeholder,
.fg textarea::placeholder {
  color: #c8cad8;
  font-size: 13px;
}
.fg input:focus,
.fg select:focus,
.fg textarea:focus {
  border-color: #7b92f0;
  box-shadow: 0 0 0 3px rgba(123,146,240,0.1);
}
.fg select { cursor: pointer; }
.fg textarea { height: 80px; resize: none; }

/* ── CTA Button ──────────────────────────────────────────── */
.cta-btn {
  width: 100%;
  margin-top: 1.25rem;
  background: #1e2a6e;
  border: none;
  border-radius: 12px;
  padding: 17px;
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: -0.2px;
  transition: transform 0.15s, background 0.2s;
  animation: ctaGlow 2s ease infinite;
}
.cta-btn:hover {
  background: #2d3fa3;
  transform: translateY(-2px);
}
.cta-btn:active { transform: scale(0.98); }

/* ── Form note & trust ───────────────────────────────────── */
.form-note {
  text-align: center;
  font-size: 12px;
  color: #c8cad8;
  margin-top: 10px;
  line-height: 1.7;
}

.trust-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f1f8;
}
.trust-item {
  font-size: 11px;
  color: #adb2cc;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-section { background: #182944; }
.footer-p {
  padding: 24px 20px;
}
.footer-p ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-p ul li a {
  text-decoration: none;
  color: #828c9b;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-p ul li a:hover { color: #c8cad8; }
.footer-copy {
  font-size: 12px;
  color: #4a5568;
  text-align: center;
}

/* ── Input hint ──────────────────────────────────────────── */
.input-hint {
  font-size: 11px;
  color: #adb2cc;
  margin-top: 4px;
  margin-bottom: 0;
}
