[x-cloak] { display: none !important; }

.wizard-container {
    border: none;
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    margin: 20px auto 0;
    background: #fff;
    padding: 30px;
    position: relative;
}
@media (max-width: 576px) { .wizard-container { padding: 0 10px 30px; } }

.wizard-title {
    color: #000;
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 8px 0;
}
.subtitleh3 {
    color: #777;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 20px;
}
.sw-label {
    color: #1E1E1E;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
    display: block;
}

.nebula-progress-wrapper { width: 100%; margin-bottom: 20px; }

.progress-label { color: #777; font-size: 13px; }
.approval-chance { font-size: 13px; font-weight: 600; }
.text-success { color: #5C34FF !important; }
.text-warning { color: #ff9500 !important; }

.nebula-progress-container {
    width: 100%;
    height: 6px;
    border-radius: 6px;
    margin-top: 6px;
    overflow: hidden;
    position: relative;
    background: repeating-linear-gradient(
        90deg,
        rgba(92,52,255,0.12) 0px,
        rgba(92,52,255,0.12) 8px,
        rgba(92,52,255,0.05) 8px,
        rgba(92,52,255,0.05) 16px
    );
    background-size: 32px 100%;
    animation: progress-track-move 1s linear infinite;
}
@keyframes progress-track-move {
    0%   { background-position: 0 0; }
    100% { background-position: 32px 0; }
}

.nebula-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5C34FF 0%, #8B6FFF 100%);
    box-shadow: 0 0 8px rgba(92,52,255,0.4);
    transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.nebula-progress-fill::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    animation: progress-shine 2s infinite;
}
@keyframes progress-shine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.nebula-input {
    position: relative;
    width: 100%;
    margin-bottom: 16px;
}

.nebula-input input {
    width: 100%;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    border-radius: 4px;
    background: #F3F3F3;
    font-size: 14px;
    color: #000;
    padding: 22px 20px 8px 20px;
    height: 52px;
    border: 2px solid transparent;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}
.nebula-input input:focus {
    border-color: #5C34FF;
    background: #fff;
}
.nebula-input input::placeholder { color: transparent; } /* placeholder скрыт, используем label */

.nebula-input .user-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #818181;
    font-size: 14px;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    pointer-events: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.nebula-input input:focus ~ .user-label,
.nebula-input input:not(:placeholder-shown) ~ .user-label {
    top: 10px;
    transform: none;
    font-size: 10px;
    color: #5C34FF;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.nebula-input.has-pct-badge input {
    padding-left: 56px;
}
.nebula-input.has-pct-badge .user-label {
    left: 56px;
}

.nebula-input.has-error input { border-color: tomato !important; background: #fff8f8 !important; }
.nebula-input.has-error .user-label { color: tomato !important; }

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

.input-pct-badge {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    z-index: 3;
    pointer-events: none;
}
svg.pct-ring {
    width: 34px;
    height: 34px;
    transform: rotate(-90deg);
    display: block;
}
.pct-track {
    fill: none;
    stroke: rgba(92,52,255,0.15);
    stroke-width: 3;
}
.pct-fill {
    fill: none;
    stroke: #5C34FF;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 82;
    stroke-dashoffset: 82;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4,0,0.2,1), stroke 0.3s ease;
}
.pct-fill.is-done {
    stroke: #22c55e;
    stroke-dashoffset: 0;
}
.pct-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7px;
    font-weight: 700;
    color: #5C34FF;
    line-height: 1;
    transition: color 0.3s ease;
}
.pct-text.is-done { color: #22c55e; }

.form-question {
    position: relative;
    margin-bottom: 16px;
    z-index: 10;
}
.form-question:focus-within,
.form-question.is-open { z-index: 999; }

.nebula-select-container { position: relative; width: 100%; }

.nebula-select-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    font-size: 14px;
    color: #818181;
    background: #F3F3F3;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 15px 20px;
    min-height: 52px;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    user-select: none;
    box-sizing: border-box;
}
.nebula-select-display.is-active {
    border-color: #5C34FF;
    background: #fff;
    color: #000;
}
.nebula-select-display.has-value { color: #000; }
.nebula-select-display.is-disabled { opacity: 0.5; cursor: not-allowed; }

.nebula-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;          /* дропдаун — мягкий, но не 60px */
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 220px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.nebula-select-dropdown::-webkit-scrollbar { width: 4px; }
.nebula-select-dropdown::-webkit-scrollbar-thumb { background: #ddd; border-radius: 4px; }

.nebula-select-item {
    padding: 12px 20px;
    font-size: 14px;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    color: #1E1E1E;
    border-bottom: 1px solid #f3f3f3;
    cursor: pointer;
    transition: background 0.15s ease;
}
.nebula-select-item:last-child { border-bottom: none; }
.nebula-select-item:hover { background: rgba(92,52,255,0.07); color: #5C34FF; }

.nebula-select-search {
    width: 100%; border: none; outline: none;
    background: transparent; padding: 0;
    font-size: 14px; font-family: "Lufga", "RobotoRegular", sans-serif; color: #1E1E1E;
}

.chevron-icon::after {
    content: '▼'; font-size: 0.6rem; color: #818181;
    transition: transform 0.25s ease; display: inline-block;
}
.nebula-select-display.is-active .chevron-icon::after { transform: rotate(180deg); }

.form-question.has-error .nebula-select-display {
    border-color: tomato !important;
}

.form-options-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.form-options-grid.grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.form-option-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 12px 15px;
    min-height: 46px;
    border: 2px solid rgba(92,52,255,0.25);
    border-radius: 8px;
    background: #fff;
    color: #5C34FF;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.form-option-btn:hover {
    border-color: #5C34FF;
    background: rgba(92,52,255,0.05);
}
.form-option-btn.is-selected {
    background: #5C34FF;
    border-color: #5C34FF;
    color: #fff;
    box-shadow: 0 4px 12px rgba(92,52,255,0.35);
}
.form-option-btn.has-error { border-color: tomato; }
.form-options-grid.has-error .form-option-btn { border-color: tomato; }

.form-field-sublabel {
    color: #1E1E1E;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 20px;
    border: 2px solid #5C34FF;
    border-radius: 60px;
    background: #5C34FF;
    color: #fff;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.2px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.button:hover {
    background: #fff;
    color: #5C34FF;
}
.button:active { transform: scale(0.98); }
.button:disabled { opacity: 0.6; cursor: not-allowed; }

/* Частицы на кнопке финиша */
.points_wrapper {
    overflow: hidden;
    width: 100%; height: 100%;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}
.points_wrapper .point {
    bottom: -10px;
    position: absolute;
    animation: floating-points infinite ease-in-out;
    pointer-events: none;
    width: 2px; height: 2px;
    background-color: rgba(255,255,255,0.8);
    border-radius: 9999px;
}
@keyframes floating-points {
    0%   { transform: translateY(0); }
    85%  { opacity: 0; }
    100% { transform: translateY(-55px); opacity: 0; }
}
.points_wrapper .point:nth-child(1)  { left:10%; opacity:1;  animation-duration:2.35s; animation-delay:.2s; }
.points_wrapper .point:nth-child(2)  { left:30%; opacity:.7; animation-duration:2.5s;  animation-delay:.5s; }
.points_wrapper .point:nth-child(3)  { left:25%; opacity:.8; animation-duration:2.2s;  animation-delay:.1s; }

.inner {
    z-index: 2;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    color: inherit;
    font-size: 16px;
    font-weight: 500;
}

.button__secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    min-height: 46px;
    background: transparent;
    border: 2px solid rgba(92,52,255,0.35);
    border-radius: 60px;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    font-size: 14px;
    color: #5C34FF;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}
.button__secondary:hover {
    border-color: #5C34FF;
    background: rgba(92,52,255,0.05);
}
.button__secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.buttton__info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
}

.email-typo-warning {
    margin-top: 6px;
    padding: 8px 12px;
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    font-size: 12px;
    color: #5a4a00;
    font-family: "Lufga", "RobotoRegular", sans-serif;
}
.email-typo-warning .typo-actions { display: flex; gap: 6px; margin-top: 6px; }
.email-typo-warning .btn-fix {
    flex:1; padding:4px 0; background:#5C34FF; color:#fff;
    border:none; border-radius:4px; cursor:pointer; font-size:12px;
}
.email-typo-warning .btn-keep {
    flex:1; padding:4px 0; background:transparent;
    color:#888; border:1px solid #ccc; border-radius:4px; cursor:pointer; font-size:12px;
}

.main-form-policy { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.main-form-policy-checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.main-form-policy-label {
    display: flex; align-items: flex-start; cursor: pointer;
    font-family: "Lufga", "RobotoRegular", sans-serif;
    font-size: 12px; color: #818181; line-height: 1.4; user-select: none;
}
.custom-checkbox-visual {
    flex-shrink: 0; width: 16px; height: 16px;
    border: 1px solid rgba(92,52,255,0.3); border-radius: 3px;
    margin-right: 8px; margin-top: 1px;
    position: relative; background: #fff; transition: all 0.2s ease;
}
.custom-checkbox-visual::after {
    content: ''; position: absolute; left: 4px; top: 1px;
    width: 5px; height: 9px; border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0); transition: transform 0.15s ease;
}
.main-form-policy-label:hover .custom-checkbox-visual { border-color: #5C34FF; }
.main-form-policy-checkbox:checked + .main-form-policy-label .custom-checkbox-visual {
    background: #5C34FF; border-color: #5C34FF;
}
.main-form-policy-checkbox:checked + .main-form-policy-label .custom-checkbox-visual::after {
    transform: rotate(45deg) scale(1);
}
.main-form-policy-label a { color: #5C34FF; text-decoration: none; font-weight: 500; }
.main-form-policy-label a:hover { text-decoration: underline; }

div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm) {
    background: #5C34FF !important;
    border-radius: 60px !important;
    font-family: "Lufga", "RobotoRegular", sans-serif !important;
}
div:where(.swal2-container) div:where(.swal2-html-container) {
    font-family: "Lufga", "RobotoRegular", sans-serif !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-4px); }
    75%       { transform: translateX(4px); }
}
.has-error { animation: shake 0.3s ease-in-out; }

.col-12, .col-12.col-md-6 { position: relative; overflow: visible !important; }
.form-group { margin-bottom: 16px; }
.small-text { font-size: 12px; color: #818181; padding-left: 4px; padding-top: 3px; }

.registration-block { animation: fadeInPage 0.5s forwards; }
@keyframes fadeInPage {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .wizard-title { font-size: 22px; }
    .form-options-grid.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
    .button { font-size: 15px; }
    .nebula-input input { height: 50px; }
    .nebula-select-display { min-height: 50px; }
}
.apk-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 12, 40, .55);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.apk-popup-card {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 420px;
    width: 100%;
    padding: 24px 22px 22px;
    box-shadow: 0 20px 60px rgba(20, 12, 40, .35);
}
.apk-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 4px;
}
.apk-popup-close:hover { color: #333; }
.apk-popup-banner {
    background: #fff7e0;
    border: 1px solid #ffe08a;
    color: #7a5b00;
    font-size: 12.5px;
    line-height: 1.45;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 4px 0 16px;
}
.apk-popup-icon {
    font-size: 40px;
    text-align: center;
    margin-bottom: 6px;
}
.apk-popup-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #1a0a3c;
    margin: 0 0 14px;
}
.apk-popup-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.apk-popup-list li {
    font-size: 13.5px;
    color: #444;
}
.apk-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.apk-popup-btn {
    display: block;
    text-align: center;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
}
.apk-popup-btn-primary {
    background: #5C34FF;
    color: #fff;
}
.apk-popup-btn-primary:hover { background: #4a29d6; color: #fff; }
.apk-popup-btn-secondary {
    background: transparent;
    color: #777;
    border: 1px solid #ddd;
}
.apk-popup-btn-secondary:hover { background: #f5f5f5; }

@media (max-width: 576px) {
    .apk-popup-card { padding: 20px 16px 18px; }
    .apk-popup-title { font-size: 18px; }
}

