/* Barcha taklifnoma shablonlari uchun umumiy poydevor */

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; height: 100vh; }

img { max-width: 100%; display: block; }

.invite { max-width: 640px; margin: 0 auto; padding: 0 22px 80px; }

section { padding: 44px 0; }

/* ---- Kirish overlay ---- */
.invite-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.invite-overlay.hidden { opacity: 0; visibility: hidden; }
.overlay-open-btn {
  margin-top: 28px; padding: 14px 40px; border-radius: 999px;
  border: none; cursor: pointer; font-size: 1.05rem; font-weight: 600;
  font-family: inherit;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---- Reveal animatsiya ---- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.15s; }
.reveal.d2 { transition-delay: 0.3s; }
.reveal.d3 { transition-delay: 0.45s; }

/* ---- Countdown ---- */
.countdown { display: flex; justify-content: center; gap: 14px; }
.cd-item {
  min-width: 68px; padding: 14px 8px; text-align: center; border-radius: 12px;
}
.cd-item span { display: block; font-size: 1.7rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.cd-item small { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.countdown-done { text-align: center; font-size: 1.3rem; font-weight: 700; }

/* ---- Xarita ---- */
.map-wrap {
  border-radius: 16px; overflow: hidden; margin: 20px 0;
  aspect-ratio: 4 / 3; background: #eee;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.btn-directions {
  display: block; text-align: center; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; font-weight: 600;
}

/* ---- Tabriklar ---- */
.greet-form { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 30px; }
.greet-form input, .greet-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; font-family: inherit;
  font-size: 1rem; border: 1.5px solid rgba(0,0,0,0.15);
}
.greet-form input:focus, .greet-form textarea:focus { outline: none; }
.greet-form textarea { min-height: 90px; resize: vertical; }
.greet-form button {
  padding: 13px 28px; border-radius: 999px; border: none; cursor: pointer;
  font-family: inherit; font-size: 1rem; font-weight: 600;
}
.greet-form button:disabled { opacity: 0.6; cursor: not-allowed; }
.greet-note { text-align: center; font-size: 0.85rem; opacity: 0.75; margin-bottom: 8px; }
.greet-list { display: flex; flex-direction: column; gap: 14px; }
.greet-item { padding: 16px 18px; border-radius: 14px; }
.greet-item b { display: block; margin-bottom: 4px; }
.greet-item p { font-size: 0.95rem; overflow-wrap: break-word; }
.greet-empty { text-align: center; opacity: 0.7; font-size: 0.92rem; }

/* ---- Musiqa tugmasi ---- */
.music-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25); font-size: 1.3rem;
}
.music-btn .icon { display: inline-block; }
.music-btn.playing .icon { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.music-btn:not(.playing) { opacity: 0.85; }

/* ---- Umumiy matn ---- */
.names-line { text-align: center; }
.section-heading { text-align: center; margin-bottom: 18px; }
.venue-name { text-align: center; font-weight: 700; font-size: 1.15rem; }
.venue-address { text-align: center; opacity: 0.85; margin-top: 4px; }
.contact-line { text-align: center; margin-top: 26px; font-size: 0.95rem; }
.contact-line a { font-weight: 700; text-decoration: none; }
.invite-footer { text-align: center; padding: 30px 0 0; font-size: 0.8rem; opacity: 0.6; }
.invite-footer a { color: inherit; }
