/* =========================================================
   Siyah & Kırmızı Kedili Form - Modern Tasarım & Animasyonlar
   ========================================================= */

:root {
  --bg-deep: #08080a;
  --bg-card: rgba(18, 18, 24, 0.88);
  --bg-input: #121218;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(229, 9, 20, 0.45);
  
  --primary-red: #e50914;
  --primary-ruby: #ff2a5f;
  --primary-coral: #ff4d6d;
  --primary-darkred: #990012;
  
  --text-main: #f8f9fa;
  --text-muted: #9e9ea7;
  --text-dim: #6c6c75;
  
  --radius-card: 28px;
  --radius-input: 16px;
  --radius-btn: 16px;
  
  --shadow-glow: 0 0 35px rgba(229, 9, 20, 0.28);
  --shadow-btn: 0 8px 24px rgba(229, 9, 20, 0.38);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.5;
}

/* Background Ambient Glows */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 380px;
  height: 380px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, rgba(229, 9, 20, 0.22) 0%, rgba(0,0,0,0) 70%);
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(255, 42, 95, 0.16) 0%, rgba(0,0,0,0) 70%);
}

/* Floating Paws in Background */
.floating-paws-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.floating-paw {
  position: absolute;
  color: rgba(229, 9, 20, 0.12);
  font-size: 24px;
  animation: floatPaw 14s linear infinite;
  user-select: none;
}

@keyframes floatPaw {
  0% {
    transform: translateY(105vh) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-10vh) rotate(45deg);
    opacity: 0;
  }
}

/* Page Layout */
.page-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   ANIMATED CAT MASCOT (PEEKING OVER CARD)
   ========================================================= */

.cat-mascot-container {
  position: relative;
  width: 180px;
  height: 110px;
  margin-bottom: -22px; /* Overlaps nicely over card top */
  z-index: 4;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cat-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.6));
}

/* Ear twitches */
.cat-ear-left {
  transform-origin: 40px 90px;
  animation: earTwitchLeft 6s ease-in-out infinite;
}

.cat-ear-right {
  transform-origin: 160px 90px;
  animation: earTwitchRight 6s ease-in-out infinite 2s;
}

@keyframes earTwitchLeft {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(-8deg); }
  94% { transform: rotate(2deg); }
  96% { transform: rotate(-4deg); }
}

@keyframes earTwitchRight {
  0%, 90%, 100% { transform: rotate(0deg); }
  92% { transform: rotate(8deg); }
  94% { transform: rotate(-2deg); }
  96% { transform: rotate(4deg); }
}

/* Eyes Blinking */
.cat-eyes {
  animation: catBlink 4.5s ease-in-out infinite;
  transform-origin: 100px 80px;
}

@keyframes catBlink {
  0%, 94%, 98%, 100% {
    transform: scaleY(1);
  }
  96% {
    transform: scaleY(0.1);
  }
}

/* Whiskers breathing */
.cat-whiskers {
  animation: whiskerWiggle 4s ease-in-out infinite alternate;
}

@keyframes whiskerWiggle {
  0% { transform: translateY(0); }
  100% { transform: translateY(1px); }
}

/* Mascot Interactive States */
.cat-mascot-container.bounce {
  animation: catJump 0.5s ease;
}

@keyframes catJump {
  0% { transform: translateY(0) scale(1); }
  40% { transform: translateY(-16px) scale(1.08); }
  70% { transform: translateY(4px) scale(0.96); }
  100% { transform: translateY(0) scale(1); }
}

.cat-mascot-container.shake {
  animation: catShakeHead 0.5s ease;
}

@keyframes catShakeHead {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-8px) rotate(-6deg); }
  40% { transform: translateX(8px) rotate(6deg); }
  60% { transform: translateX(-5px) rotate(-3deg); }
  80% { transform: translateX(5px) rotate(3deg); }
}

/* Cat Speech Bubble */
.cat-bubble {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(18, 18, 24, 0.95);
  border: 1px solid var(--border-glow);
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.25);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  pointer-events: none;
  animation: bubbleFloat 3s ease-in-out infinite alternate;
}

.cat-bubble::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: rgba(18, 18, 24, 0.95) transparent;
  display: block;
  width: 0;
}

@keyframes bubbleFloat {
  0% { transform: translateX(-50%) translateY(0); }
  100% { transform: translateX(-50%) translateY(-4px); }
}

/* =========================================================
   CARD STYLES (GLASSMORPHISM & CRIMSON GLOW)
   ========================================================= */

.card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 9, 20, 0.25);
  border-top: 2px solid rgba(255, 42, 95, 0.5);
  border-radius: var(--radius-card);
  padding: 36px 26px 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  position: relative;
  z-index: 3;
}

/* Steps Indicator */
.steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  gap: 12px;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0.4;
  transition: var(--transition);
}

.step-dot .dot-paw {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: var(--transition);
}

.step-dot .dot-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.step-dot.active {
  opacity: 1;
}

.step-dot.active .dot-paw {
  background: linear-gradient(135deg, var(--primary-red), var(--primary-ruby));
  border-color: var(--primary-coral);
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.6);
  transform: scale(1.1);
}

.step-dot.active .dot-label {
  color: #ffffff;
  font-weight: 700;
}

.step-dot.completed .dot-paw {
  background: rgba(229, 9, 20, 0.2);
  border-color: var(--primary-red);
  color: var(--primary-coral);
}

.step-line {
  flex: 1;
  max-width: 40px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

/* Steps Containers */
.form-steps-container {
  position: relative;
  min-height: 260px;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

/* Step Header */
.step-header {
  margin-bottom: 22px;
  text-align: left;
}

.step-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(229, 9, 20, 0.14);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: var(--primary-coral);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.step-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* =========================================================
   VURGULU SORU KUTUSU (ADIM 3 - TELEFON NUMARASI)
   ========================================================= */

.highlight-badge {
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.3), rgba(255, 42, 95, 0.25));
  border-color: var(--primary-ruby) !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.45);
}

.highlight-question-box {
  margin-top: 14px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.22), rgba(255, 42, 95, 0.14));
  border: 1.5px solid var(--primary-ruby);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 0 25px rgba(229, 9, 20, 0.35), inset 0 0 15px rgba(229, 9, 20, 0.15);
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 16px rgba(229, 9, 20, 0.25), inset 0 0 10px rgba(229, 9, 20, 0.1);
    border-color: rgba(255, 42, 95, 0.7);
  }
  100% {
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.55), inset 0 0 18px rgba(229, 9, 20, 0.25);
    border-color: #ff3366;
  }
}

.highlight-question-text {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 12px rgba(229, 9, 20, 0.8);
}

.sparkle-icon {
  font-size: 16px;
  animation: sparkleTwinkle 2s ease-in-out infinite alternate;
}

@keyframes sparkleTwinkle {
  0% { transform: scale(0.9) rotate(-10deg); opacity: 0.7; }
  100% { transform: scale(1.2) rotate(10deg); opacity: 1; }
}

.highlight-input {
  border-color: rgba(255, 42, 95, 0.45) !important;
  box-shadow: 0 0 14px rgba(229, 9, 20, 0.2);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-input);
  transition: var(--transition);
}

.input-wrapper:focus-within {
  border-color: var(--primary-ruby);
  box-shadow: 0 0 16px rgba(229, 9, 20, 0.35);
  background: #161620;
}

.input-icon {
  padding-left: 16px;
  font-size: 18px;
  color: var(--primary-coral);
  display: flex;
  align-items: center;
  user-select: none;
}

.input-wrapper input {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 16px; /* Prevents auto-zoom on iOS safari */
  font-family: inherit;
  font-weight: 500;
}

.input-wrapper input::placeholder {
  color: var(--text-dim);
}

.input-hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.phone-validation-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.phone-validation-hint .hint-bullet {
  color: var(--primary-coral);
  font-weight: 900;
}

.field-error {
  display: none;
  font-size: 12px;
  font-weight: 600;
  color: #ff4d6d;
  margin-top: 8px;
  animation: fadeIn 0.25s ease;
}

.field-error.show {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button-group {
  display: flex;
  width: 100%;
  margin-top: 10px;
}

.button-group.dual-btn {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-btn);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  text-decoration: none;
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-ruby) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #f0141f 0%, #ff3b6e 100%);
  box-shadow: 0 10px 28px rgba(229, 9, 20, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-paw, .btn-heart {
  font-size: 16px;
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-primary:hover .btn-paw {
  transform: translateY(-2px) rotate(10deg);
}

.btn-primary:hover .btn-heart {
  transform: scale(1.2);
}

/* =========================================================
   STEP 4: SUCCESS & PHOTO REVEAL SCREEN
   ========================================================= */

.success-screen {
  text-align: center;
  padding: 6px 0;
  animation: zoomIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

.celebration-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 30px;
  background: rgba(229, 9, 20, 0.18);
  border: 1.5px solid var(--primary-ruby);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.3);
}

.success-title {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.success-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 0 10px;
}

/* =========================================================
   HEDİYE PAKETİ & PAKET AÇILIMI (UNBOXING) ANİMASYONU
   ========================================================= */

.gift-box-wrapper {
  margin: 10px auto 20px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  animation: giftFloat 3s ease-in-out infinite alternate;
  transition: transform 0.3s ease, opacity 0.4s ease;
}

@keyframes giftFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.gift-box-visual {
  position: relative;
  width: 140px;
  height: 125px;
  margin-bottom: 18px;
}

/* Gift Lid */
.gift-lid-wrapper {
  position: absolute;
  top: 0;
  left: -8px;
  width: 156px;
  z-index: 4;
  transform-origin: top left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gift-bow-icon {
  font-size: 34px;
  line-height: 1;
  text-align: center;
  margin-bottom: -10px;
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.7));
  animation: bowPulse 2s ease-in-out infinite alternate;
}

@keyframes bowPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.12); }
}

.gift-lid {
  height: 28px;
  background: linear-gradient(135deg, #181822 0%, #0e0e13 100%);
  border: 2px solid var(--primary-ruby);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(229, 9, 20, 0.4);
}

/* Gift Body */
.gift-body {
  position: absolute;
  top: 24px;
  left: 0;
  width: 140px;
  height: 100px;
  background: linear-gradient(135deg, #14141c 0%, #0a0a0e 100%);
  border: 2px solid var(--primary-red);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.25);
  overflow: hidden;
  z-index: 2;
}

.ribbon-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-ruby));
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}

.ribbon-h {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  height: 24px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-ruby));
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.6);
}

.gift-center-paw {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 20px;
  z-index: 3;
  color: #ffffff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Button Reveal */
.btn-reveal-gift {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-ruby));
  border: 1.5px solid var(--primary-coral);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.45);
  transition: all 0.25s ease;
  user-select: none;
}

.btn-reveal-gift:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(229, 9, 20, 0.7);
}

.btn-reveal-gift:active {
  transform: scale(0.96);
}

.gift-btn-sparkle {
  animation: sparkleTwinkle 1.5s ease-in-out infinite alternate;
}

/* Unboxing Animations */
.gift-box-wrapper.opening .gift-lid-wrapper {
  animation: lidFlyOff 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gift-box-wrapper.opening .gift-body {
  animation: boxPop 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.gift-box-wrapper.opening .btn-reveal-gift {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

@keyframes lidFlyOff {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  50% { transform: translateY(-40px) rotate(-25deg); opacity: 0.9; }
  100% { transform: translateY(-90px) rotate(-45deg) scale(0.6); opacity: 0; }
}

@keyframes boxPop {
  0% { transform: scale(1); opacity: 1; }
  40% { transform: scale(1.15); opacity: 1; filter: brightness(1.4); }
  100% { transform: scale(0.3); opacity: 0; }
}

/* Photo Frame Container */
.photo-frame-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px;
}

.photo-frame-wrapper.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.4);
}

.photo-frame-wrapper.revealed {
  display: block;
  animation: photoUnboxReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes photoUnboxReveal {
  0% {
    opacity: 0;
    transform: scale(0.3) rotate(-6deg);
    filter: blur(10px);
  }
  60% {
    opacity: 1;
    transform: scale(1.04) rotate(1deg);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

.photo-glow-effect {
  position: absolute;
  inset: -6px;
  background: linear-gradient(135deg, var(--primary-red), var(--primary-ruby));
  border-radius: 24px;
  filter: blur(14px);
  opacity: 0.65;
  z-index: 1;
}

.photo-card {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  background: #14141a;
  border: 2px solid var(--primary-ruby);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 10px;
  background: linear-gradient(to top, rgba(10, 10, 14, 0.92) 0%, rgba(10, 10, 14, 0) 100%);
  display: flex;
  justify-content: center;
}

.overlay-text {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.success-footer-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-coral);
  margin-top: 10px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.page-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 480px) {
  .page-container {
    padding: 16px 12px;
  }

  .card {
    padding: 30px 18px 22px;
    border-radius: 24px;
  }

  .cat-mascot-container {
    width: 160px;
    height: 100px;
    margin-bottom: -18px;
  }

  .step-title {
    font-size: 21px;
  }

  .button-group.dual-btn {
    grid-template-columns: 1fr 1.6fr;
  }

  .photo-card {
    height: 250px;
  }
}
