/* ═══════════════════════════════════════════
   Meridians Talks × Corsa — Popup Form CSS
   Tilda Settings > Custom CSS ga qo'shing
   ═══════════════════════════════════════════ */

/* ── OVERLAY ── */
.t-popup {
  background: rgba(0, 0, 0, 0.80) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  z-index: 99999 !important;
  border: none !important;
}

/* Tilda popup ichidagi record/section — borderlarni tozalaymiz */
.t-popup .t-rec,
.t-popup .t-section,
.t-popup [class*="t-rec"],
.t-popup [class*="t-section"] {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  background: transparent !important;
  padding: 0 !important;
}

.t-popup .t-section__topbg,
.t-popup .t-section__bgimg,
.t-popup .t-section__top {
  display: none !important;
  border: none !important;
}

/* ── POPUP BOX ── */
.t-popup__container {
  background: #0d0b1e !important;
  border: 1px solid rgba(240, 96, 74, 0.25) !important;
  border-radius: 24px !important;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(240, 96, 74, 0.08) !important;
  padding: 48px 44px !important;
  max-width: 520px !important;
}

/* ── CLOSE BUTTON ── */
/* .t-popup__block-close — tepada chiqadigan qora 50px balandlikdagi div */
.t-popup__close,
.t-popup__block-close,
.t-popup__close.t-popup__block-close {
  background: transparent !important;
  background-color: transparent !important;
}
.t-popup__close-icon {
  fill: #6b6b80 !important;
  transition: fill 0.2s !important;
}
.t-popup__close:hover .t-popup__close-icon {
  fill: #ffffff !important;
}

/* ── FORM TITLE ── */
.t-popup__container .t-title,
.t-popup__container .t-descr {
  font-family: 'Inter', sans-serif !important;
  color: #ffffff !important;
  text-align: left !important;
}
.t-popup__container .t-title {
  font-size: 28px !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  margin-bottom: 8px !important;
}
.t-popup__container .t-descr {
  font-size: 14px !important;
  color: #b0b0c8 !important;
  margin-bottom: 28px !important;
  font-weight: 400 !important;
}

/* ── INPUT GROUP SPACING ── */
.t-input-group {
  margin-bottom: 14px !important;
}

/* ── MATN INPUTLARI (Ism, Telegram) ── */
/* .t-input-group_ph — telefon qatori, qolganlariga qo'llaymiz */
.t-input-group:not(.t-input-group_ph) .t-input {
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px !important;
  padding: 13px 16px !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.t-input-group:not(.t-input-group_ph) .t-input::placeholder {
  color: #6b6b80 !important;
}

.t-input-group:not(.t-input-group_ph) .t-input:focus {
  border-color: rgba(240, 96, 74, 0.60) !important;
  background: rgba(240, 96, 74, 0.04) !important;
  box-shadow: 0 0 0 3px rgba(240, 96, 74, 0.08) !important;
  outline: none !important;
}

/* ── TELEFON MAYDONI: WRAPPER ── */
/* Tilda haqiqiy sinfi: .t-input-phonemask__wrap */
.t-input-phonemask__wrap {
  display: flex !important;
  align-items: stretch !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  padding: 0 !important;
  color: #ffffff !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}

.t-input-phonemask__wrap:focus-within {
  border-color: rgba(240, 96, 74, 0.60) !important;
  background: rgba(240, 96, 74, 0.03) !important;
  box-shadow: 0 0 0 3px rgba(240, 96, 74, 0.08) !important;
}

/* ── TELEFON: BAYROQ + KOD QISMI ── */
.t-input-phonemask__select {
  background: rgba(255, 255, 255, 0.04) !important;
  border: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.10) !important;
  border-radius: 0 !important;
  padding: 0 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.t-input-phonemask__select-code {
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 500 !important;
}

.t-input-phonemask__select-triangle {
  border-top-color: #6b6b80 !important;
}

/* ── TELEFON: ASOSIY INPUT ── */
.t-input-phonemask {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  padding: 13px 14px !important;
  flex: 1 !important;
  width: 100% !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.t-input-phonemask::placeholder {
  color: #6b6b80 !important;
}

/* ── SUBMIT BUTTON ── */
/* Tilda haqiqiy sinfi: .t-submit .t-btnflex */
.t-submit,
.t-btnflex.t-btnflex_type_submit,
.t-form__submit .t-submit {
  font-family: 'Inter', sans-serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: linear-gradient(135deg, #f0604a 0%, #c94030 100%) !important;
  background-color: #f0604a !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 16px 32px !important;
  cursor: pointer !important;
  width: 100% !important;
  box-shadow: 0 8px 32px rgba(240, 96, 74, 0.35) !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.t-submit:hover,
.t-btnflex.t-btnflex_type_submit:hover {
  box-shadow: 0 14px 44px rgba(240, 96, 74, 0.50) !important;
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, #f0604a 0%, #c94030 100%) !important;
  color: #ffffff !important;
}

/* ── SUCCESS MESSAGE ── */
.t-form__successbox,
.js-successbox {
  font-family: 'Inter', sans-serif !important;
  color: #ffffff !important;
}

/* ── ERROR STATE ── */
.t-input.error,
.t-input-phonemask.error {
  border-color: #f0604a !important;
  box-shadow: 0 0 0 3px rgba(240, 96, 74, 0.15) !important;
}

/* ── INPUT BLOCK WRAPPER ── */
.t-input-block {
  border-radius: 10px !important;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  .t-popup__container {
    padding: 32px 24px !important;
    border-radius: 20px !important;
    margin: 12px !important;
  }
  .t-popup__container .t-title {
    font-size: 22px !important;
  }
}
