/* Custom CSS for OncoPA */

:root {
    --primary-blue: #0066cc;
    --secondary-blue: #4a90e2;
    --accent-green: #28a745;
    --accent-teal: #17a2b8;
    --warm-gray: #6c757d;
    --light-gray: #f8f9fa;
    --dark-gray: #343a40;
    --medical-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #4a90e2 100%);
    --gradient-secondary: linear-gradient(135deg, #28a745 0%, #17a2b8 100%);
}

/* Global Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    padding-top: 76px; /* Account for fixed navbar */
}

.text-primary {
    color: var(--primary-blue) !important;
}

.btn-primary {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.btn-outline-primary {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

/* Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark-gray) !important;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medical-white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e9ecef" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.hero-icon {
    font-size: 12rem;
    opacity: 0.8;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Feature Cards */
.feature-icon i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 102, 204, 0.1) !important;
}

/* Benefits Section */
.benefit-icon i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: 50%;
}

.benefit-item {
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(5px);
}

/* Stats Cards */
.stats-container {
    padding: 2rem;
}

.stat-card {
    background: var(--medical-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-card i {
    font-size: 2rem;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 0.5rem 0;
}

/* CTA Section */
.bg-primary {
    background: var(--gradient-primary) !important;
    position: relative;
    overflow: hidden;
}

.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: 50px 50px;
    animation: move 20s linear infinite;
    pointer-events: none; /* Allow clicks to pass through to buttons below */
}

@keyframes move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50px); }
}

/* Footer */
footer {
    background-color: var(--dark-gray) !important;
}

footer a:hover {
    color: var(--primary-blue) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0;
    }
    
    .hero-icon {
        font-size: 8rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}

/* Loading Animation */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-gray);
    border-top: 4px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
}

/* Button Hover Effects */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Section Spacing */
section {
    position: relative;
}

.section-divider {
    height: 2px;
    background: var(--gradient-primary);
    margin: 4rem 0;
    opacity: 0.3;
}

/* Professional Medical Color Scheme */
.text-medical-primary { color: var(--primary-blue); }
.text-medical-secondary { color: var(--secondary-blue); }
.text-medical-success { color: var(--accent-green); }
.text-medical-info { color: var(--accent-teal); }
.bg-medical-light { background-color: var(--light-gray); }
.bg-medical-white { background-color: var(--medical-white); }

/* Cancer Type Cards */
.cancer-type-card {
    background: var(--medical-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.cancer-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 102, 204, 0.15);
    border-color: var(--primary-blue);
}

/* Tool Preview Styling */
.tool-preview {
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--medical-white) 100%);
    border: 2px solid #e9ecef;
    border-radius: 12px;
}

.tool-preview .form-select:disabled {
    background-color: #f8f9fa;
    opacity: 0.7;
}

/* Pricing Cards */
.price-display {
    padding: 1rem 0;
    border-bottom: 2px solid var(--light-gray);
}

/* Timeline Styling */
.timeline-item {
    position: relative;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-blue);
}

/* Phase Icons */
.phase-icon {
    transition: transform 0.3s ease;
}

.phase-icon:hover {
    transform: scale(1.1);
}

/* Map Placeholder */
.map-placeholder {
    background: linear-gradient(135deg, var(--light-gray) 0%, #ffffff 100%);
    border: 2px dashed #dee2e6;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Office Info */
.office-info {
    padding: 2rem;
    background: var(--medical-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Accordion */
.accordion-button {
    background-color: var(--medical-white);
    border: none;
    font-weight: 600;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-gray);
    color: var(--primary-blue);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 204, 0.25);
}

/* Contact Form Enhancements */
.needs-validation .form-control:invalid {
    border-color: #dc3545;
}

.needs-validation .form-control:valid {
    border-color: var(--accent-green);
}

/* Pricing Toggle Classes */
.pricing-monthly .yearly-price,
.pricing-monthly .yearly-savings {
    display: none !important;
}

.pricing-yearly .monthly-price {
    display: none !important;
}

.pricing-yearly .yearly-price {
    display: inline !important;
}

.pricing-yearly .yearly-savings {
    display: block !important;
}

/* Additional Responsive Improvements */
@media (max-width: 576px) {
    .cancer-type-card {
        margin-bottom: 1rem;
    }
    
    .tool-preview {
        padding: 2rem !important;
    }
    
    .price-display .display-6 {
        font-size: 2rem;
    }
} 