/* Стили для модального окна заказа */
.telegram-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.telegram-modal-overlay.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.telegram-modal {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

.telegram-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--background);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.telegram-modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.telegram-modal-header {
    padding: 30px 30px 20px 30px;
    border-bottom: 1px solid var(--border);
}

.telegram-modal-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.telegram-modal-header p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.telegram-modal-body {
    padding: 30px;
}

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

.telegram-modal .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.telegram-modal .form-group input,
.telegram-modal .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    transition: var(--transition);
    background: var(--surface);
    font-family: inherit;
}

.telegram-modal .form-group input:focus,
.telegram-modal .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.telegram-modal .form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 25px 0;
    font-size: 14px;
    line-height: 1.4;
}

.telegram-modal .form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.telegram-modal .form-consent label {
    margin: 0;
    color: var(--text-secondary);
}

.telegram-modal .form-consent a {
    color: var(--primary);
    text-decoration: none;
}

.telegram-modal .form-consent a:hover {
    text-decoration: underline;
}

.telegram-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.telegram-modal-actions .btn {
    flex: 1;
    padding: 14px 20px;
}

.order-success-message {
    text-align: center;
    padding: 40px 30px;
}

.order-success-message .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.order-success-message h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.order-success-message p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.form-message {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius-sm);
    text-align: center;
    display: none;
}

.form-message.success {
    background: var(--alert-success);
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: var(--alert-error);
    color: #dc2626;
    border: 1px solid #fecaca;
}

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

@media (max-width: 768px) {
    .telegram-modal-overlay {
        padding: 15px;
    }
    
    .telegram-modal-header {
        padding: 25px 25px 15px 25px;
    }
    
    .telegram-modal-body {
        padding: 25px;
    }
    
    .telegram-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .telegram-modal-header {
        padding: 20px 20px 15px 20px;
    }
    
    .telegram-modal-body {
        padding: 20px;
    }
    
    .telegram-modal-header h3 {
        font-size: 20px;
    }
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    font-size: 28px;
    cursor: pointer;
    margin-top: -10px;
}

.modal-close:hover {
    color: #666;
}