/**
 * Frontend styles for Call-to-Action
 */

/* Main CTA Container */
.jsc-cta-wrapper {
    margin: 2rem 0;
    clear: both;
}

.jsc-cta-container {
    background: #f9f9f9;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.jsc-cta-container:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.jsc-cta-container h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
    text-align: center;
}

/* CTA Options Layout */
.jsc-cta-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.jsc-cta-option {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 1rem;
    background: #fff;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.jsc-cta-option:hover {
    transform: translateY(-2px);
}

.jsc-cta-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.jsc-cta-option p {
    margin: 0;
    line-height: 1.6;
}

.jsc-cta-option a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.jsc-cta-option a:hover {
    color: #005177;
    text-decoration: underline;
}

/* Simple CTA Style */
.jsc-cta-container.simple {
    text-align: center;
    padding: 1.5rem;
}

.jsc-cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0.5rem 0;
}

/* Appointment Focus Style */
.jsc-cta-container.appointment {
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
}

.jsc-cta-container.appointment h3 {
    color: #fff;
}

.jsc-cta-container.appointment .jsc-cta-text {
    color: #f0f0f0;
    margin-bottom: 1.5rem;
}

/* CTA Buttons */
.jsc-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.jsc-cta-button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    min-height: 44px;
    text-align: center;
}

.jsc-cta-button.primary {
    background: #fff;
    color: #667eea;
    border-color: #fff;
}

.jsc-cta-button.primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.jsc-cta-button.secondary {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

.jsc-cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Widget Styles */
.widget.jsc-cta-widget .jsc-cta-container {
    margin: 0;
    padding: 1.5rem;
}

.widget.jsc-cta-widget .jsc-cta-options {
    flex-direction: column;
    gap: 1rem;
}

.widget.jsc-cta-widget .jsc-cta-option {
    min-width: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jsc-cta-container {
        padding: 1.5rem;
    }
    
    .jsc-cta-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .jsc-cta-option {
        min-width: 0;
    }
    
    .jsc-cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .jsc-cta-button {
        width: 100%;
    }
    
    .jsc-cta-container h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .jsc-cta-container {
        padding: 1rem;
    }
    
    .jsc-cta-icon {
        font-size: 2rem;
    }
    
    .jsc-cta-container h3 {
        font-size: 1.125rem;
    }
    
    .jsc-cta-text {
        font-size: 1rem;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jsc-cta-wrapper.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Print Styles */
@media print {
    .jsc-cta-wrapper {
        display: none;
    }
}
