:root {
    --primary-color: #f8f9fa; /* Light Accent */
    --primary-hover: #e5e7eb;
    --bg-color: #0b1f2a; /* Dark Navy Background */
    --card-bg: #153a4e; /* Slightly lighter navy for cards */
    --text-dark: #ffffff; /* White text */
    --text-muted: #cbd5e1; /* Light gray text */
    --border-color: #334155; /* Dark gray/blue borders */
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* 1. Общий layout */
.app-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-card {
    width: 100%;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Отступы между всеми блоками */
}

/* Header & Заголовок */
.header {
    text-align: center;
    margin-top: 30px;
    /* Спустили надпись чуть ниже */
    margin-bottom: 20px;
    /* spacing снизу */
}

.kia-logo {
    height: 18px;
    margin-bottom: 12px;
    opacity: 0.9;
    display: inline-block;
}

.car-title {
    font-size: 22px;
    /* Уменьшенный размер */
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Картинка машины */
.image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 16px;
    /* Отступ снизу */
}

.car-image {
    width: 100%;
    max-height: 180px;
    /* Ограничиваем высоту */
    object-fit: contain;
}

/* 4. Блок выбора позиции */
.configurator {
    text-align: center;
}

.section-label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.position-selector {
    display: flex;
    flex-direction: row;
    /* Горизонтально */
    gap: 8px;
    /* Небольшой зазор */
    width: 100%;
}

.pos-btn {
    flex: 1;
    /* Равномерно распределяем ширину */
    padding: 12px 4px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-dark);
    border-radius: 10px;
    font-size: 13px;
    /* Немного уменьшили шрифт для горизонтали */
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    text-align: center;
}

.pos-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-hover);
}

.pos-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
    /* Тень для выделения */
}

/* 5. Цена (Monolithic block) */
.price-block-monolith {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.offers-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    padding: 12px 0;
    line-height: 1.4;
    animation: pulse 0.7s infinite ease-in-out;
}

.price-display {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    width: 100%;
}

.price-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.price-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--text-muted);
}

.price-value-container {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-value {
    font-size: 15px;
    /* Уменьшенная на ~30% цена */
    font-weight: 800;
    color: var(--primary-color);
}

.currency {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* 6. Форма */
.lead-form-section {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-label {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Отступы между инпутами */
}

/* Инпуты */
.input-group input {
    width: 100%;
    height: 48px;
    /* Высота 48px */
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    /* border-radius 10px */
    font-family: inherit;
    font-size: 15px;
    background: rgba(255,255,255,0.05);
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* Яркая Кнопка */
.submit-btn {
    width: 100%;
    height: 48px;
    background: var(--primary-color);
    color: var(--bg-color);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.submit-btn:disabled {
    background: #374151;
    /* Серая только если не заполнено */
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.submit-btn:not(:disabled) {
    animation: pulse 0.7s infinite ease-in-out;
}

.success-message {
    margin-top: 16px;
    padding: 16px;
    background-color: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}