/* CTA Popup Forms Styles */

.cta-button-container {
    margin: 0px 0;
}

/* Button Styles */
.cta-quote-btn, .cta-expert-btn {
    background-color: #662046;
    color: white;
    border: none;
    padding: 15px;
    font-size: 25px;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0px;
    min-width: 220px;
}

.cta-quote-btn:hover, .cta-expert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.6;
}

.cta-expert-btn {
    background-color: #717074;
}

/* Modal Styles */
.cta-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw; 
    height: 100vh; 
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cta-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cta-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

.cta-close:hover,
.cta-close:focus {
    color: #000;
    text-decoration: none;
}

/* Form Styles */
.cta-modal h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 28px;
    text-align: center;
    border-bottom: 3px solid #662046;
    padding-bottom: 10px;
}

.cta-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.half-width {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 5px 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #662046;
    box-shadow: 0 0 0 3px rgba(102, 32, 70, 0.1);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.cta-submit-btn {
    background: linear-gradient(135deg, #662046, #804666);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 32, 70, 0.3);
}

.cta-submit-btn:hover {
    background: linear-gradient(135deg, #662046, #717074);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(102, 32, 70, 0.4);
}

.cta-submit-btn:active {
    transform: translateY(0);
}



.cta-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    font-weight: bold;
    text-align: center;
    display: none;
}

.cta-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cta-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


/* Loading State */
.cta-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.cta-submit-btn.loading {
    background: #6c757d;
    cursor: not-allowed;
}

.cta-submit-btn.loading::after {
    content: " Loading...";
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-modal-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }
    
    .cta-quote-btn, .cta-expert-btn {
        width: 100%;
        margin: 10px 0;
        padding: 12px 20px;
        font-size: 16px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .half-width {
        min-width: auto;
    }
    
    .cta-modal h2 {
        font-size: 24px;
    }
    
    .contact-item strong {
        display: block;
        margin-bottom: 5px;
    }
    
    /* Expert Modal Responsive */
    .expert-choice-buttons {
        flex-direction: column;
        gap: 20px;
    }
    
    .choice-divider {
        transform: rotate(90deg);
        min-width: auto;
    }
    
    .choice-divider span {
        padding: 8px 12px;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .cta-back-btn, .form-buttons .cta-submit-btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .cta-modal-content {
        margin: 5% auto;
        padding: 15px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .cta-submit-btn {
        padding: 12px 20px;
        font-size: 16px;
    }
}

/* Print Styles */
@media print {
    .cta-modal {
        display: none !important;
    }
}

/* Accessibility Improvements */
.cta-quote-btn:focus,
.cta-expert-btn:focus,
.cta-submit-btn:focus {
    outline: 3px solid rgba(102, 32, 70, 0.5);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .cta-quote-btn, .cta-expert-btn {
        border: 2px solid currentColor;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        border-width: 2px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .cta-modal,
    .cta-modal-content,
    .cta-quote-btn,
    .cta-expert-btn,
    .cta-submit-btn {
        animation: none;
        transition: none;
    }
}
