/* Call to Action Popup Styles */
.cta-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 31, 92, 0.8);
    z-index: 999999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
}

.cta-popup-container {
    background: #ffffff;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
    font-family: 'Raleway', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.cta-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.cta-popup-close:hover {
    background-color: #f8f9fa;
    color: #081f5c;
}

.cta-popup-content {
    padding: 40px 32px 32px;
    text-align: center;
}

.cta-popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #081f5c, #0a2469);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
}

.cta-popup-title {
    font-size: 24px;
    font-weight: 600;
    color: #081f5c;
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.cta-popup-subtitle {
    font-size: 15px;
    color: #495057;
    line-height: 1.6;
    margin: 0 0 32px 0;
    text-align: left;
}

.cta-popup-form {
    text-align: left;
}

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

.cta-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.cta-form-half {
    flex: 1;
    margin-bottom: 0;
}

.cta-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #081f5c;
    font-size: 14px;
}

.cta-form-group input,
.cta-form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    transition: all 0.2s ease;
    background-color: #ffffff;
    box-sizing: border-box;
    color: #212529;
}

.cta-form-group input:focus,
.cta-form-group select:focus {
    outline: none;
    border-color: #081f5c;
    box-shadow: 0 0 0 3px rgba(8, 31, 92, 0.1);
}

.cta-form-group input::placeholder {
    color: #6c757d;
}

.cta-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.5L2.5 5h7L6 8.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

.cta-checkbox-group {
    margin-bottom: 24px;
}

.cta-checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    line-height: 1.4;
    margin-bottom: 0;
}

.cta-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cta-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 10px;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: #ffffff;
}

.cta-checkbox-label input[type="checkbox"]:checked + .cta-checkbox-custom {
    background-color: #081f5c;
    border-color: #081f5c;
}

.cta-checkbox-label input[type="checkbox"]:checked + .cta-checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.cta-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #FF7A42, #ff8c5a);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Raleway', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.cta-submit-btn:hover {
    background: linear-gradient(135deg, #e86b3a, #ff7a42);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 122, 66, 0.3);
}

.cta-submit-btn:active {
    transform: translateY(0);
}

.cta-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-popup-overlay {
        padding: 10px;
    }
    
    .cta-popup-container {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .cta-popup-content {
        padding: 32px 24px 24px;
    }
    
    .cta-popup-title {
        font-size: 22px;
    }
    
    .cta-popup-subtitle {
        font-size: 14px;
    }
    
    .cta-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .cta-form-half {
        margin-bottom: 20px;
    }
    
    .cta-popup-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 20px;
    }
    
    .cta-popup-icon svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .cta-popup-content {
        padding: 28px 20px 20px;
    }
    
    .cta-popup-title {
        font-size: 20px;
    }
    
    .cta-form-group input,
    .cta-form-group select {
        padding: 10px 14px;
    }
    
    .cta-submit-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Success/Error Messages */
.cta-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.cta-message-success {
    background-color: #e8f5e8;
    color: #2d5a2d;
    border: 1px solid #c3e6cb;
}

.cta-message-error {
    background-color: #f8e8e8;
    color: #8b2635;
    border: 1px solid #f5c6cb;
}

/* Animation for form submission */
.cta-popup-form.submitting {
    opacity: 0.6;
    pointer-events: none;
}

/* Light theme optimized design */
@media (prefers-color-scheme: dark) {
    .cta-popup-container {
        background: #ffffff;
        color: #212529;
    }
    
    .cta-popup-title {
        color: #081f5c;
    }
    
    .cta-popup-subtitle {
        color: #495057;
    }
    
    .cta-form-group label {
        color: #081f5c;
    }
    
    .cta-form-group input,
    .cta-form-group select {
        background-color: #ffffff;
        border-color: #dee2e6;
        color: #212529;
    }
    
    .cta-form-group input:focus,
    .cta-form-group select:focus {
        border-color: #081f5c;
        box-shadow: 0 0 0 3px rgba(8, 31, 92, 0.1);
    }
    
    .cta-checkbox-custom {
        border-color: #dee2e6;
        background-color: #ffffff;
    }
}
/* Група за чекбокса */
.cta-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

/* Скриваме нативния чекбокс */
.cta-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Квадратче за отметка */
.cta-checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background-color: #ffffff;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

/* Показване на отметка при checked */
.cta-checkbox-label input[type="checkbox"]:checked + .cta-checkbox-custom::after {
    content: "";
    position: absolute;
    inset: 3px;
    background-color: #FF7A42; /* Може да ползваш твоя брандов цвят */
    clip-path: polygon(20% 45%, 40% 65%, 80% 25%, 90% 35%, 40% 85%, 10% 55%);
}

/* Текст до чекбокса */
.cta-checkbox-text {
    color: #495057;
}
