/* Стили для страницы изготовления номеров */
.plates-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;
}

/* Типы номеров */
.plates-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

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

.plate-type-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

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

.plate-icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.plate-name {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.plate-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 8px;
}

.plate-price {
    font-size: 14px;
    font-weight: 700;
    color: #FFB800;
}

/* Поле ввода номера */
.plate-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

.plate-input {
    flex: 1;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.random-btn {
    background: rgba(255, 184, 0, 0.3);
    border: 1px solid rgba(255, 184, 0, 0.5);
    border-radius: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.random-btn:active {
    transform: scale(0.95);
}

.field-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
}

/* Опции */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-checkbox {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.option-checkbox:hover {
    background: rgba(255, 255, 255, 0.2);
}

.option-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.option-checkbox input:checked ~ .checkmark {
    background: #FFB800;
}

.option-checkbox input:checked ~ .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2A4DF4;
    font-size: 12px;
    font-weight: bold;
}

.option-text {
    flex: 1;
    font-size: 14px;
    color: white;
}

.option-price {
    font-size: 12px;
    color: #FFB800;
    font-weight: 500;
}

/* Количество */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-input {
    width: 80px;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.qty-input::-webkit-inner-spin-button,
.qty-input::-webkit-outer-spin-button {
    opacity: 0.5;
}

/* Форма */
.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);
}

textarea.form-input {
    resize: vertical;
    font-family: inherit;
}

/* Доставка */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-radio {
    display: flex;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-radio:hover {
    background: rgba(255, 255, 255, 0.2);
}

.delivery-radio input {
    position: absolute;
    opacity: 0;
}

.radio-custom {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 12px;
    position: relative;
    transition: all 0.2s;
}

.delivery-radio input:checked ~ .radio-custom {
    background: #FFB800;
}

.delivery-radio input:checked ~ .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #2A4DF4;
    border-radius: 50%;
}

.delivery-address {
    margin-top: 12px;
    animation: slideDown 0.3s ease;
}

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

/* Итоговая стоимость */
.total-price-box {
    background: linear-gradient(135deg, rgba(42, 77, 244, 0.3), rgba(255, 184, 0, 0.3));
    border-radius: 24px;
    padding: 20px;
    text-align: center;
    margin: 24px 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.total-value {
    font-size: 36px;
    font-weight: 800;
    color: #FFB800;
}

.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;
}

.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;
}

/* Успешная запись */
.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: 16px;
    text-align: left;
}

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

.order-summary {
    background: rgba(255, 184, 0, 0.2);
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 24px;
    text-align: center;
}

.order-summary .price {
    font-size: 28px;
    font-weight: 800;
    color: #FFB800;
}

/* Тост */
.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) {
    .plates-types {
        grid-template-columns: 1fr;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .total-value {
        font-size: 28px;
    }
}