/* SCOPE Diagnostics - CTA Form Component Styles */

/* Modal overlay and container */
#ctaModal {
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

#ctaModal.hidden {
    animation: fadeOut 0.2s ease-in;
}

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

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

/* Modal content animation */
#ctaModal .bg-white {
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

/* Form field focus states */
#ctaForm input:focus,
#ctaForm textarea:focus,
#ctaForm select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Submit button states */
#ctaSubmitBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#ctaSubmitBtn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Checkbox styling */
#ctaForm input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #3b82f6;
}

/* Close button hover effect */
#ctaModalClose:hover {
    background-color: #f3f4f6;
    border-radius: 4px;
}

/* Success/Error message animations */
.success-message,
.error-message {
    animation: slideUp 0.3s ease-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #ctaModal .bg-white {
        margin: 1rem;
        max-width: calc(100vw - 2rem);
        max-height: calc(100dvh - 2rem);
        max-height: calc(100vh - 2rem);
        overflow-y: auto;
    }
    
    #ctaForm {
        font-size: 14px;
    }
    
    #ctaForm input,
    #ctaForm textarea,
    #ctaForm select {
        padding: 10px 12px;
    }
}

/* CTA Button Styles for different contexts */
.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #3b82f6;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.cta-button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.cta-button.secondary:hover {
    background-color: #3b82f6;
    color: white;
}

.cta-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.cta-button.small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Icon animations */
.cta-button i {
    transition: transform 0.2s ease;
}

.cta-button:hover i {
    transform: translateX(2px);
}
