/* Стили для страницы страховки */
.insurance-page {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px 16px 40px;
    position: relative;
    z-index: 2;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 40px;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.2s;
}

.back-btn:active {
    transform: scale(0.96);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.section-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-title-small {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.step {
    transition: all 0.3s ease;
}

.step.hidden {
    display: none;
}

/* Типы страховки */
.insurance-types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.insurance-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.insurance-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

.insurance-card.selected {
    border-color: #FFB800;
    background: rgba(255, 184, 0, 0.2);
    transform: scale(1.02);
}

.insurance-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.insurance-name {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
}

.insurance-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 12px;
}

.insurance-price {
    font-size: 18px;
    font-weight: 700;
    color: #FFB800;
}

/* Форма */
.form-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 12px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(255, 184, 0, 0.3);
    color: white;
}

.tab-content {
    transition: all 0.3s;
}

.tab-content.hidden {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
    color: white;
    transition: all 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #FFB800;
    background: rgba(255, 255, 255, 0.25);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-input option {
    background: #2A4DF4;
}

select.form-input {
    cursor: pointer;
}

.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #2A4DF4, #FFB800);
    border: none;
    border-radius: 60px;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 10px;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    width: 100%;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 60px;
    padding: 14px;
    font-size: 16px;
    font-weight: 500;
    color: white;
    cursor: pointer;
    margin-top: 12px;
}

/* Результат */
.result-card {
    text-align: center;
}

.price-box {
    background: rgba(255, 184, 0, 0.2);
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 8px;
}

.price-value {
    font-size: 48px;
    font-weight: 800;
    color: #FFB800;
}

.price-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.price-details p {
    font-size: 14px;
    margin: 8px 0;
    color: rgba(255,255,255,0.9);
}

/* Успешная запись */
.success-card {
    text-align: center;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.success-text {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.booking-details {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: left;
}

.booking-details p {
    margin: 8px 0;
    font-size: 14px;
}

/* Дополнительные водители */
.driver-entry {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 12px;
}

.driver-entry .form-row {
    margin-bottom: 8px;
}

/* Тост */
.toast-message {
    position: fixed;
    bottom: 30px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    color: white;
    padding: 14px 20px;
    border-radius: 40px;
    text-align: center;
    z-index: 9999;
    transition: opacity 0.3s;
    display: none;
}

.toast-message.show {
    display: block;
}

.hidden {
    display: none;
}

/* Адаптация */
@media (max-width: 380px) {
    .insurance-types {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .price-value {
        font-size: 36px;
    }
}