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

html, body { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d1117;
    min-height: 100vh;
    color: #fff;
}

/* ============================
   LAYOUT
   ============================ */
.page.container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 16px 28px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============================
   HEADER
   ============================ */
.header {
    text-align: center;
    padding: 28px 0 16px;
}

.header__title {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.header__title span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.45);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* ============================
   WARNING BLOCK
   ============================ */
.warning-block {
    background: #161b22;
    border: 1px solid rgba(255, 77, 77, 0.3);
    border-radius: 20px;
    padding: 24px 20px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

/* Phone icon */
.warning-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.warning-phone {
    width: 60px;
    height: 100px;
    position: relative;
    z-index: 2;
}

.warning-pulse {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 77, 77, 0.12);
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.5; }
    50%       { transform: scale(1.2); opacity: 1; }
}

/* Meter */
.warning-meter {
    width: 100%;
}

.warning-meter__label {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.warning-meter__pct {
    color: #ff4d4d;
    font-weight: 700;
}

.warning-meter__bar {
    height: 8px;
    background: rgba(255,255,255,0.08);
    border-radius: 99px;
    overflow: hidden;
}

.warning-meter__fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff6b35, #ff4d4d);
    transition: width 1.4s cubic-bezier(.4,0,.2,1);
}

/* Title + text */
.warning-title {
    font-size: 18px;
    font-weight: 700;
    color: #ff4d4d;
    text-align: center;
}

.warning-text {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    text-align: center;
    line-height: 1.65;
}

.warning-text strong {
    color: #ff6b35;
    font-weight: 700;
}

/* List */
.warning-list {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.warning-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot--red    { background: #ff4d4d; }
.dot--orange { background: #ff6b35; }
.dot--yellow { background: #ffcc00; }

/* ============================
   MAIN
   ============================ */
.main { flex: 1; }

/* ============================
   FORM BOX (CARD)
   ============================ */
.form__box {
    background: #1c2128;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.07);
}

.form__lead {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form__lead-icon { width: 48px; height: 48px; }

/* ============================
   FLOW STEPS
   ============================ */
.flow__step         { display: none; }
.flow__step.active  { display: block; }

/* ============================
   FORM
   ============================ */
.form { padding: 24px 20px 16px; }

.form__heading {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    margin-bottom: 4px;
}

.form__subheading {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 18px;
}

.form__inner-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Input wrapper */
.form__input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.05);
    transition: border-color 0.2s;
}

.form__input-wrapper:focus-within {
    border-color: #ef4444;
}

.form__input-icon {
    padding: 12px 10px;
    flex-shrink: 0;
    background: rgba(239,68,68,0.15);
}

.form__input {
    flex: 1;
    border: none;
    outline: none;
    padding: 14px 14px 14px 8px;
    font-size: 16px;
    font-family: inherit;
    color: #fff;
    background: transparent;
    -webkit-appearance: none;
}

.form__input::placeholder { color: rgba(255,255,255,0.25); }

.form__input-wrapper--pin .form__input {
    letter-spacing: 10px;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 14px;
}

/* Button */
.form__btn {
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
}

.form__btn--go {
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 100%);
    color: #fff;
    padding: 16px;
    box-shadow: 0 6px 20px rgba(239,68,68,0.35);
    transition: opacity 0.2s, transform 0.1s;
}

.form__btn--go:active {
    transform: scale(0.98);
    opacity: 0.88;
}

.form__btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.form__after-btn-text {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    text-align: center;
    line-height: 1.6;
}

.error {
    font-size: 12px;
    color: #f87171;
    text-align: center;
    min-height: 15px;
}

/* ============================
   AGREEMENT
   ============================ */
.agreement__box {
    padding: 4px 20px 20px;
    flex-direction: column;
    gap: 8px;
}

.agreement__box.active { display: flex; }

.agreement__checkbox {
    display: none;
}

.agreement {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    line-height: 1.6;
}

.agreement__link {
    color: rgba(255,255,255,0.55);
    text-decoration: underline;
}

.sum {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.6;
}

/* operator visibility — both shown by default */
.operator-1, .operator-3 { display: block; }

/* ============================
   FOOTER
   ============================ */
.footer { padding: 18px 0 6px; }

.footer__text {
    font-size: 10px;
    color: rgba(255,255,255,0.25);
    text-align: center;
    line-height: 1.7;
}

.footer__link {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

/* ============================
   LOADER
   ============================ */
.loader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,17,23,0.9);
    backdrop-filter: blur(4px);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.loader.active { display: flex; }

.loader__icon {
    width: 44px;
    height: 44px;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
