/* ─── Reset & Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #ff1493 0%, #ff8c00 50%, #ffd700 100%);
  color: white;
  text-align: center;
  overflow-x: hidden;
}

/* ─── Views ──────────────────────────────────────────────────────────────── */
.view {
  display: none;
  min-height: 100vh;
  padding: 2rem 1.5rem 3rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.view.active { display: flex; }
.hidden { display: none !important; }

/* ─── Palms Animation ────────────────────────────────────────────────────── */
.palms {
  font-size: 2.5rem;
  letter-spacing: 0.5rem;
  animation: sway 2.5s ease-in-out infinite alternate;
  user-select: none;
}
@keyframes sway {
  from { transform: rotate(-6deg); }
  to   { transform: rotate(6deg);  }
}

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  font-weight: 900;
  text-shadow: 2px 3px 6px rgba(0,0,0,0.35);
  line-height: 1.2;
  max-width: 480px;
}
h2 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  font-weight: 800;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  line-height: 1.3;
  max-width: 420px;
}
p {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 380px;
  line-height: 1.5;
}

/* ─── Counter Badge ──────────────────────────────────────────────────────── */
.counter-box {
  background: rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.4);
}

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  border: none;
  border-radius: 50px;
  padding: 0.95rem 2rem;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, opacity 0.2s;
  box-shadow: 0 4px 18px rgba(0,0,0,0.22);
  min-width: 220px;
  max-width: 380px;
  width: 100%;
  line-height: 1.3;
}
.btn:hover:not(:disabled) { transform: scale(1.04); box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-primary {
  background: white;
  color: #e01b8c;
}
.btn-pass {
  background: white;
  color: #16a34a;
  border: 3px solid #16a34a;
}
.btn-fail {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-fail:hover:not(:disabled) {
  background: rgba(220,38,38,0.45);
  border-color: #fca5a5;
}
.btn-share {
  background: rgba(255,255,255,0.25);
  color: white;
  border: 2px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
}

/* ─── Form ───────────────────────────────────────────────────────────────── */
.form-group {
  width: 100%;
  max-width: 400px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
input[type="text"],
input[type="tel"] {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: none;
  font-size: 1rem;
  background: rgba(255,255,255,0.97);
  color: #222;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  outline: none;
}
input:focus {
  box-shadow: 0 0 0 3px rgba(255,255,255,0.8), 0 2px 12px rgba(0,0,0,0.12);
}

/* ─── Tabs ───────────────────────────────────────────────────────────────── */
.tabs {
  display: flex;
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.2);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}
.tab {
  flex: 1;
  padding: 0.6rem 0.4rem;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.8);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  font-size: 0.88rem;
}
.tab.active {
  background: white;
  color: #e01b8c;
}

/* ─── Contact Input Wrapper ──────────────────────────────────────────────── */
.contact-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 400px;
  background: rgba(255,255,255,0.97);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.contact-prefix {
  padding: 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #e01b8c;
  line-height: 1;
  white-space: nowrap;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.contact-wrapper input {
  box-shadow: none;
  border-radius: 0;
  border-left: 2px solid #fce7f3;
}

/* ─── Lippenstift Input ──────────────────────────────────────────────────── */
.lipstick-group {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}
.lipstick-group input {
  width: 100%;
  text-align: center;
  font-size: 1.1rem;
}

/* ─── Error Message ──────────────────────────────────────────────────────── */
.error-msg {
  background: rgba(185,28,28,0.85);
  color: white;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  max-width: 400px;
  width: 100%;
  text-align: center;
}

/* ─── Fail Countdown ─────────────────────────────────────────────────────── */
.countdown-big {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  animation: pulse 0.9s ease-in-out infinite;
  text-shadow: 3px 3px 8px rgba(0,0,0,0.3);
}
@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 1;    }
  50%       { transform: scale(1.15); opacity: 0.85; }
}

/* ─── Success ────────────────────────────────────────────────────────────── */
.success-emoji {
  font-size: 4.5rem;
  animation: bounce 0.75s ease-in-out infinite alternate;
  display: block;
}
@keyframes bounce {
  from { transform: translateY(0);     }
  to   { transform: translateY(-18px); }
}

/* ─── Already Submitted Banner ───────────────────────────────────────────── */
.already-box {
  background: rgba(255,255,255,0.25);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
  padding: 1rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
  max-width: 360px;
  line-height: 1.6;
}
