:root {
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --bg-icon-success: #ecfdec;
    --bg-icon-danger: #fdecec;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #334155;
    --color-black: #222222;
    --color-black-hover: #000000;
    --color-primary: #059669;
    --color-primary-hover: #047857;
    --color-danger: #960505;
    --color-danger-hover: #780404;
    --border-color: #f1f5f9;

    --spacing: .25rem;
    --tw-space-x-reverse: 0;
    --font-weight-medium: 500;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    margin: 0;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}


.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}
.row > * {
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.col {
    flex: 1 0 0;
}

.row-cols-auto > * {
    flex: 0 0 auto;
    width: auto;
}

.row-cols-1 > * {
    flex: 0 0 auto;
    width: 100%;
}

.row-cols-2 > * {
    flex: 0 0 auto;
    width: 50%;
}

.row-cols-3 > * {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.row-cols-4 > * {
    flex: 0 0 auto;
    width: 25%;
}

.row-cols-5 > * {
    flex: 0 0 auto;
    width: 20%;
}

.row-cols-6 > * {
    flex: 0 0 auto;
    width: 16.66666667%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
}

.col-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
}

.col-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
}

.col-3 {
    flex: 0 0 auto;
    width: 25%;
}

.col-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
}

.col-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
}

.col-6 {
    flex: 0 0 auto;
    width: 50%;
}

.col-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
}

.col-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
}

.col-9 {
    flex: 0 0 auto;
    width: 75%;
}

.col-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
}

.col-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.card {
    background-color: var(--bg-card);
    max-width: 400px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    padding: 32px;
    box-sizing: border-box;
}

.center {
    text-align: center;
}

.icon-box {
    margin: 0 auto 24px auto;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.icon-box-lg {
    width: 128px;
    height: 128px;
}

.icon-box img {
    width: 100%;
    height: 100%;
}

.icon-success {
    background-color: var(--bg-icon-success);
    color: var(--color-primary);
}

.icon-danger {
    background-color: var(--bg-icon-danger);
    color: var(--color-danger);
}

.text-danger {
    color: var(--color-danger);
}

h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 8px 0;
}

p, a, li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.app-url {
    font-weight: 600;
    color: var(--text-dark);
}

.btn {
    display: block;
    width: 100%;
    padding: 14px 0;
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border-radius: 12px;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.btn-success {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.2);
}

.btn-success:hover {
    background-color: var(--color-primary-hover);
}

.btn-black {
    background-color: var(--color-black);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.2);
}

.btn-black:hover {
    background-color: var(--color-black-hover);
}

.btn-danger {
    background-color: var(--color-danger);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgb(150 5 5 / 0.2);
}

.btn-danger:hover {
    background-color: var(--color-danger-hover);
}

.footer {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 24px;
}

.footer .footer-logo {
    margin: 5px 5px -5px 0;
    width: 20px;
}

/* Container for spacing */
.input-group {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin-bottom: 20px;
    max-width: 300px;
}

/* Label styling */
.input-group label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 6px;
}

/* Base input field styling */
.input-group input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid #cccccc;
    border-radius: 6px;
    background-color: #ffffff;
    color: #333333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Subtle placeholder text */
.input-group input[type="text"]::placeholder {
    color: #aaaaaa;
}

/* Smooth focus state */
.input-group input[type="text"]:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
}



/* Основной контейнер */
.step-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 600px;
    margin: 40px auto;
    font-family: sans-serif;
}

/* Серая соединительная линия (фоновая) */
.step-container::before {
    content: '';
    position: absolute;
    top: 20px; /* По центру кружка */
    left: 0;
    right: 0;
    height: 4px;
    background-color: #e0e0e0;
    z-index: 1;
}

.progress-line {
    position: absolute;
    top: 20px;
    left: 0;
    height: 4px;
    background-color: #4caf50; /* Зеленый цвет прогресса */
    z-index: 1;
    transition: width 0.4s ease;
}

/* Стили для каждого шага */
.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2; /* Чтобы кружки были поверх линии */
}

/* Круг с цифрой внутри */
.step .circle {
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 4px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: #999;
    transition: all 0.4s ease;
}

/* Текст под кружком */
.step .label {
    margin-top: 8px;
    font-size: 14px;
    color: #999;
}

/* Стили для пройденных и текущего шагов (.active) */
.step.active .circle {
    border-color: #4caf50;
    background-color: #4caf50;
    color: #fff;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.4);
}

.step.active .label {
    color: #333;
    font-weight: 500;
}
