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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #eeeeee 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(185, 28, 28, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    max-width: 550px;
    width: 100%;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(220, 38, 38, 0.1);
    animation: slideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 35px;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.logo-placeholder i {
    font-size: 40px;
    color: white;
}

h1 {
    color: #dc2626;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.subtitle {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 35px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #f5f5f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #dc2626, #ef4444);
    width: 25%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 10px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-color: #dc2626;
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
    transform: scale(1.1);
}

.progress-step.completed .step-circle {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
}

.progress-step span {
    font-size: 12px;
    color: #999999;
    font-weight: 600;
    text-align: center;
}

.progress-step.active span {
    color: #dc2626;
}

/* Step Content */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.step-title {
    color: #1a1a1a;
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #666666;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #dc2626;
    pointer-events: none;
    z-index: 1;
}

.dropdown-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #999999;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.searchable-select.active .dropdown-icon {
    transform: translateY(-50%) rotate(180deg);
}

input[type="text"],
input[type="number"],
input[type="hidden"] {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-size: 16px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    color: #1a1a1a;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
}

input[type="hidden"] {
    display: none;
}

input::placeholder {
    color: #999999;
}

input:hover {
    border-color: #cccccc;
    background: #fafafa;
}

input:focus {
    outline: none;
    border-color: #dc2626;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

/* Searchable Select */
.searchable-select {
    position: relative;
}

.dropdown-list {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.dropdown-list.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 14px 20px;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

.dropdown-item.custom {
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    font-style: italic;
    color: #666666;
}

.dropdown-item.custom:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}

/* Currency Options */
.currency-options {
    display: grid;
    gap: 12px;
}

.currency-option {
    padding: 18px 20px;
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.currency-option:hover {
    background: #fafafa;
    border-color: #cccccc;
    transform: translateY(-2px);
}

.currency-option.selected {
    background: rgba(220, 38, 38, 0.05);
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.currency-icon {
    font-size: 32px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626, #991b1b);
    border-radius: 14px;
    color: white;
}

.currency-info {
    flex: 1;
}

.currency-name {
    color: #1a1a1a;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 3px;
}

.currency-code {
    color: #666666;
    font-size: 13px;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 12px;
}

.btn-back,
.btn-next,
.btn-submit {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.btn-back {
    background: #f5f5f5;
    color: #666666;
    border: 2px solid #e5e5e5;
}

.btn-back:hover {
    background: #eeeeee;
    border-color: #cccccc;
    transform: translateY(-2px);
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #dc2626, #991b1b);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-next:hover,
.btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
}

.btn-next:disabled,
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Response Messages */
#response {
    margin-top: 25px;
    padding: 18px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
    animation: fadeInUp 0.5s ease;
    display: none;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#response.success {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
    border: 2px solid #16a34a;
}

#response.error {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 2px solid #dc2626;
}

/* Debug Log */
#debugLog {
    margin-top: 30px;
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    color: #666666;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .container {
        padding: 30px 20px;
    }
    h1 {
        font-size: 26px;
    }
    .step-title {
        font-size: 20px;
    }
    .progress-step span {
        font-size: 10px;
    }
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    input[type="text"],
    input[type="number"] {
        padding: 14px 18px 14px 48px;
    }
    .button-group {
        flex-direction: column;
    }
    .btn-back,
    .btn-next,
    .btn-submit {
        width: 100%;
    }
}
/* Убираем стрелки у input type="number" */
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;
}
.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}
