/* Custom styles for First Choice Health & Protection */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --accent-color: #198754;
    --text-color: #212529;
    --light-bg: #f8f9fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
}

/* Header styling */
.display-4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* Card enhancements */
.card {
    border: none;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-title {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Form styling */
.form-control {
    border-radius: 0.375rem;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

/* Footer styling */
footer {
    border-top: 1px solid #dee2e6;
    margin-top: auto;
}

footer a {
    color: var(--primary-color);
    transition: color 0.15s ease-in-out;
}

footer a:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Alert styling */
.alert {
    border-radius: 0.375rem;
    border: none;
}

/* Toast styling */
.toast-container {
    z-index: 9999;
}

.toast {
    min-width: 300px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.toast-header {
    font-weight: 600;
}

@media (max-width: 576px) {
    .toast-container {
        left: 0;
        right: 0;
        padding: 1rem;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Privacy Policy page specific */
.privacy-policy-section {
    margin-bottom: 2rem;
}

.privacy-policy-section h2 {
    color: var(--primary-color);
    font-weight: 600;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.privacy-policy-section ul {
    padding-left: 1.5rem;
}

.privacy-policy-section li {
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1.5rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    footer {
        page-break-inside: avoid;
    }
}

/* Accessibility improvements */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Hero section styling */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Blockquote styling */
blockquote:not(.blockquote-enhanced) {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

/* Button outline styling */
.btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
}

.btn-outline-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Contact information links */
a[href^="mailto:"],
a[href^="tel:"] {
    color: var(--primary-color);
    text-decoration: none;
}

a[href^="mailto:"]:hover,
a[href^="tel:"]:hover {
    text-decoration: underline;
}

/* Footer link spacing */
footer .gap-3 > * {
    margin: 0 0.5rem;
}

/* Enhanced card shadows */
.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Hero section text contrast */
.bg-primary h1,
.bg-primary p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Section Content Styling */
.section-content {
    position: relative;
}

/* Enhanced Background Sections */
.bg-light.section-content {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    padding: 4rem 0;
}

.bg-light.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
}

.bg-light.section-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(13, 110, 253, 0.1), transparent);
}

.bg-light .container {
    position: relative;
    z-index: 1;
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    padding-bottom: 1.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), rgba(13, 110, 253, 0.3));
    border-radius: 2px;
}

.section-text-large {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #495057;
    font-weight: 400;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blockquote-enhanced {
    border: none;
    padding: 0;
    margin: 0;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    line-height: 1.7;
    color: #495057;
    font-weight: 400;
    position: relative;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.quote-text::before {
    content: '"';
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: 700;
}

.quote-text::after {
    content: '"';
    position: absolute;
    right: 1rem;
    bottom: -1rem;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.15;
    font-family: Georgia, serif;
    line-height: 1;
    font-weight: 700;
}

.blockquote-footer {
    font-size: 1.1rem;
    color: #6c757d;
    font-style: normal;
    margin-top: 1rem;
}

.blockquote-footer cite {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.blockquote-footer cite::before {
    content: '— ';
    font-weight: 400;
    color: #6c757d;
}

/* Responsive adjustments for sections */
@media (max-width: 768px) {
    .section-heading {
        font-size: 2rem;
        padding-bottom: 1rem;
    }
    
    .section-heading::after {
        width: 60px;
        height: 3px;
    }
    
    .section-text-large {
        font-size: 1.1rem;
    }
    
    .section-text {
        font-size: 1rem;
    }
    
    .bg-light.section-content {
        padding: 3rem 0;
    }
    
    .quote-text {
        font-size: 1.25rem;
        padding: 1.5rem 2rem;
    }
    
    .quote-text::before {
        font-size: 3.5rem;
        left: 0.5rem;
        top: 0.25rem;
    }
    
    .quote-text::after {
        font-size: 3.5rem;
        right: 0.5rem;
        bottom: -0.75rem;
    }
}

/* Provider Carousel */
.carousel-bg {
    background-color: #e8f0f8;
}

.provider-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.provider-carousel-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 5rem;
    align-items: center;
    padding: 0 2rem;
}

.provider-carousel:hover .provider-carousel-track {
    animation-play-state: paused;
}

.provider-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    padding: 0 2rem;
}

.provider-logo:hover {
    opacity: 1;
}

.provider-logo img {
    max-height: 80px;
    max-width: 150px;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments for provider carousel */
@media (max-width: 768px) {
    .provider-logo {
        height: 60px;
        padding: 0 1rem;
    }
    
    .provider-logo img {
        max-height: 60px;
        max-width: 120px;
    }
    
    .provider-carousel-track {
        gap: 3rem;
        padding: 0 1rem;
    }
}

