.csp-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    animation: cspFadeIn 0.3s ease;
}

.csp-popup-overlay.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.csp-popup-container {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    padding: 40px;
    width: 90%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #374151;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
}

.csp-popup-overlay.active .csp-popup-container {
    transform: scale(1);
    opacity: 1;
}

.csp-close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #9ca3af;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.csp-close-btn:hover {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
}

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

.csp-popup-logo {
    font-size: 24px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.csp-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
}

.csp-popup-subtitle {
    color: #9ca3af;
    font-size: 16px;
    margin-bottom: 10px;
}

.csp-service-info {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    text-align: center;
}

.csp-service-label {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.csp-service-name {
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.csp-popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.csp-form-row {
    display: flex;
    gap: 15px;
}

.csp-form-group {
    position: relative;
    flex: 1;
}

.csp-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #374151;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #111827;
    color: white;
    box-sizing: border-box;
    font-family: inherit;
}

.csp-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.csp-form-input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.csp-form-input::placeholder {
    color: #6b7280;
}
/* Базовые стили для кнопок отправки */
.csp-submit-btn,
.csp-submit-btn.button,
.csp-submit-btn.button.is-primary {
    background-color: #dc3545 !important; /* Красный цвет */
    border-color: #dc3545 !important;
    color: white !important;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dc3545;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Эффекты при наведении */
.csp-submit-btn:hover,
.csp-submit-btn.button:hover,
.csp-submit-btn.button.is-primary:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Эффекты при нажатии */
.csp-submit-btn:active,
.csp-submit-btn.button:active,
.csp-submit-btn.button.is-primary:active {
    background-color: #bd2130 !important;
    border-color: #b21f2d !important;
    transform: translateY(0);
}

/* Состояние фокуса для доступности */
.csp-submit-btn:focus,
.csp-submit-btn.button:focus,
.csp-submit-btn.button.is-primary:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* Отключенное состояние */
.csp-submit-btn:disabled,
.csp-submit-btn.button:disabled,
.csp-submit-btn.button.is-primary:disabled {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.65;
}

/* Дополнительные стили для кастомных форм */
.custom-form .csp-submit-btn {
    width: 100%;
    margin-top: 15px;
}

/* Дополнительные стили для простых форм */
.simple-form .csp-submit-btn {
    min-width: 120px;
}

.csp-privacy-text {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}

.csp-privacy-text a {
    color: #dc2626;
    text-decoration: none;
}

.csp-success-message {
    text-align: center;
    padding: 20px;
    display: none;
}

.csp-success-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: white;
}

.csp-success-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.csp-success-text {
    color: #9ca3af;
    line-height: 1.5;
}

/* Стили только для кнопок с классами car-service-btn и car-service-trigger */
.car-service-btn, 
.car-service-trigger {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.car-service-btn:hover, 
.car-service-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.3);
    border-color: #dc2626;
    color: white !important;
    text-decoration: none;
}

@keyframes cspFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .csp-popup-container {
        padding: 30px 25px;
        margin: 20px;
        max-width: none;
        width: calc(100% - 40px);
    }
    
    .csp-popup-title {
        font-size: 24px;
    }
    
    .csp-form-row {
        flex-direction: column;
        gap: 20px;
    }
    
    .csp-popup-logo {
        font-size: 20px;
    }
    
    .csp-popup-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .csp-popup-container {
        padding: 20px 15px;
        margin: 10px;
        width: calc(100% - 20px);
    }
    
    .csp-popup-title {
        font-size: 20px;
    }
    
    .csp-form-input {
        padding: 14px 16px;
        font-size: 14px;
    }
    
    .csp-submit-btn {
        padding: 16px 24px;
        font-size: 14px;
    }
}