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

:root {
  --red: #fe0000;
  --red-dark: #ca130c;
  --dark: #022426;
  --blue: #399cff;
  --rose: #d1444e;
  --green: #21be7b;
  --border: #e5e7eb;
  --muted: #6b7280;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: #111;
  background-color: #fff;
}

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

/* ===================== STEP 1 — FORMA ===================== */
.main { padding: 40px 0 106px; background: #000; min-height: 100vh; }

.main-container {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.title {
  text-align: center;
  color: #fff;
  font-size: clamp(14px, 5.1vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.title span { color: var(--red-dark); }

.main-plan {
  width: 100%;
  background: #fff;
  border-radius: 30px;
  padding-bottom: 24px;
  overflow: hidden;
}

.plan-header {
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e3e3e3;
  margin-bottom: 22px;
}

/* Bosqichlar chizig'i */
.steps {
  max-width: 340px;
  margin: 0 auto;
}
.steps-line { width: 100%; height: 28px; display: block; }
.steps-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
}
.steps-labels p {
  font-weight: 600;
  font-size: clamp(12px, 3.4vw, 15px);
  text-align: center;
  color: #000;
  line-height: 1.25;
  flex: 1;
}
.steps-labels p.is-muted { color: #9a9a9a; }

.center { padding: 0 20px; }

.plan-date {
  font-size: 18px;
  text-align: center;
  margin-bottom: 11px;
  font-weight: 400;
}
b { font-weight: 700; }

.plan-title {
  font-weight: 700;
  font-size: clamp(13px, 3.9vw, 20px);
  text-align: center;
  text-transform: uppercase;
  line-height: 1.25;
  padding: 12px 20px;
  background: var(--dark);
  border-radius: 8px;
  color: #fff;
  max-width: 420px;
  margin: 0 auto 10px;
}

.plan-description {
  text-align: center;
  font-size: clamp(11px, 3.2vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 10px;
}

.plan-select-now {
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  color: #3d3d3d;
  margin-bottom: 14px;
}

/* Forma */
.form { display: grid; grid-template-columns: 1fr; gap: 12px; }
.form__col { display: grid; grid-template-columns: 1fr; }

.label { font-weight: 600; font-size: 16px; margin-bottom: 4px; }

.input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #000;
  outline: none;
  font-size: 18px;
  font-family: var(--font);
  background: #fff;
  color: #111;
  width: 100%;
}
.input:focus { border-color: var(--red); }
select.input { appearance: auto; cursor: pointer; }

/* Telefon + davlat kodi */
.phone-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}
#localPhone { flex: 1; min-width: 140px; }

.dropdown { width: fit-content; position: relative; }
.dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #000;
  background: #fff;
  user-select: none;
  min-height: 46px;
  font-size: 18px;
}
.selected-code { font-weight: 700; }
.chev {
  width: 18px; height: 18px;
  display: inline-block;
  transition: transform .18s ease;
  opacity: .8;
}
.chev.open { transform: rotate(180deg); opacity: 1; }

.dropdown__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 280px;
  max-width: 78vw;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(12, 18, 31, .14);
  max-height: 240px;
  overflow: auto;
  z-index: 120;
  display: none;
  padding: 6px;
}
.dropdown__list.open { display: block; }
.dropdown__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #111;
}
.dropdown__item:hover,
.dropdown__item:focus { background: #f4f7ff; outline: none; }
.dropdown__item[aria-selected="true"] { background: #eef6ff; font-weight: 700; }
.country-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.country-code { opacity: .9; font-weight: 700; }

.offerta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.offerta-row input { width: 18px; height: 18px; }
.offerta-row a { color: #ff815d; text-decoration: none; }

.plan-list-btn {
  width: 100%;
  text-align: center;
  background: var(--red);
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font);
  color: #fff;
  cursor: pointer;
  transition: all .3s;
  text-transform: uppercase;
  margin-top: 4px;
}
.plan-list-btn:hover { background: #d40000; }
.plan-list-btn:disabled { opacity: .7; cursor: wait; }

/* Footer */
footer { background: #000; padding: 40px 0; color: #fff; text-align: center; }
.footer-container {
  max-width: 384px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer__number {
  padding: 8px;
  border: 1px solid #fff;
  max-width: 200px;
  margin: 0 auto;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
}
.footer__link-telegram {
  background: var(--rose);
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 289px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 16px;
  color: #fff;
  text-decoration: none;
  margin: 0 auto;
}

/* ===================== STEP 2 — TO'LOV ===================== */
.payment { padding: 18px 0 76px; }
.payment-container { max-width: 470px; margin: 0 auto; padding: 0 16px; }

.payment__header {
  background: linear-gradient(128.56deg, #eff7ff 0%, #d7eaff 100%);
  border-radius: 15px;
  padding: 22px;
  margin-bottom: 21px;
}
.payment__title {
  color: #2f3463;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.payment__tariff {
  font-weight: 400;
  font-size: 15px;
  color: #2f3463;
  margin-bottom: 17px;
}
.payment__price {
  font-weight: 700;
  font-size: 26px;
  color: #2f3463;
  margin-bottom: 8px;
}
.payment__timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.payment__timer-label {
  max-width: 170px;
  font-weight: 500;
  font-size: 14px;
  color: #2f3463;
  line-height: 1.5;
}
.payment__time {
  padding: 10px 20px;
  font-size: 17px;
  color: #ff0000;
  background: #fff;
  border-radius: 10px;
  font-variant-numeric: tabular-nums;
}

.payment__instruction { padding: 4px 4px 0; margin-bottom: 20px; }
.payment__step {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  line-height: 1.5;
  margin-bottom: 20px;
}

.payment__card {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 13px 14px 12px;
  display: flex;
  flex-direction: column;
}
.payment__card-header {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.payment__card-type {
  font-size: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
.payment__card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.payment__card-number { font-size: 20px; font-weight: 500; letter-spacing: .5px; }
.payment__card-name { font-size: 15px; font-weight: 500; color: #333; }
.payment__card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #8a8a8a;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  flex-shrink: 0;
}

.uploadCheck {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  border: 2px dashed var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  cursor: pointer;
  transition: border-color .2s;
}
.uploadCheck:hover { border-color: var(--blue); }
.uploadCheck.is-done { border-color: var(--green); border-style: solid; }

.payment__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  width: 100%;
  background: var(--blue);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: all .3s;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}
.payment__btn:hover { opacity: .92; }
.payment__btn:disabled { opacity: .7; cursor: wait; }

.payment__help { padding: 10px 4px; }
.payment__help-text {
  font-size: 18px;
  max-width: 256px;
  text-align: center;
  margin: 0 auto 20px;
  line-height: 1.4;
}
.payment__btn--admin { background: var(--rose); }
.payment__btn--phone { background: var(--green); margin-top: 15px; }

/* ===================== STEP 3 — TABRIK ===================== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
}
.content { max-width: 560px; width: 100%; text-align: center; }
.check-icon { margin: 0 auto 24px; }
.ty-title { font-size: 28px; font-weight: 800; letter-spacing: .04em; margin-bottom: 8px; }
.subtitle { font-size: 16px; color: #4b5563; margin-bottom: 28px; }

.details-card {
  background: #fbfbfb;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, .12);
  text-align: left;
  margin: 0 auto 28px;
}
.detail-row {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.detail-label { font-weight: 500; color: #4b5563; }
.detail-value { font-weight: 600; text-align: right; }
.detail-date { color: #22b455; }
.text-block { font-size: 16px; line-height: 1.6; margin-bottom: 18px; text-align: center; }

/* Ko'zga tashlanadigan yashil chaqiruv matni */
.text-block--cta {
  background: linear-gradient(135deg, #21be7b 0%, #16a765 100%);
  color: #fff;
  font-size: clamp(15px, 4.2vw, 19px);
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
  padding: 16px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(33, 190, 123, .32);
  margin-bottom: 20px;
}

/* ===================== MOBIL ===================== */
@media (max-width: 480px) {
  .payment__title { font-size: 17px; }
  .payment__header { background: #d8ebff; }
  .payment__price { font-size: 22px; }
  .payment__card-number { font-size: 17px; }
  .payment__card-type { font-size: 17px; }
  .payment__card-name { font-size: 13px; }
  .payment__step { font-size: 15px; }
  .ty-title { font-size: 24px; }
  .details-card { padding: 20px 16px; }
  .detail-row { font-size: 15px; }
  .label { font-size: 15px; }
  .input, .dropdown__toggle { font-size: 16px; }
}
