/* Custom Styles for Pediatrician Website */

:root {
    --primary-color: #4a90e2;
    --secondary-color: #f8f9fa;
    --accent-color: #28a745;
    --text-dark: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #357abd 100%);
    min-height: 500px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
    transform: translateY(-2px);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

section {
    scroll-margin-top: 80px;
}

.hero-section img {
    border: 5px solid rgba(255, 255, 255, 0.3);
}

footer {
    margin-top: 50px;
}

@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        min-height: 400px;
    }
    
    .hero-section .col-md-4 {
        margin-top: 30px;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

/* Form Animations */
.form-control, .form-select {
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    transform: scale(1.02);
}

/* Success/Error Messages */
.alert {
    border: none;
    border-radius: 10px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Loading Animation */
.loading {
    display: none;
}

.loading.show {
    display: inline-block;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Testimonials Carousel */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
}

.carousel-indicators button {
    background-color: var(--primary-color);
}

#testimonialsCarousel .card {
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* WhatsApp Chat Widget */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25d366;
    border: none;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-button:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

.whatsapp-chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    display: none;
    animation: slideUp 0.3s ease;
}

.whatsapp-chat-box.show {
    display: block;
}

.whatsapp-header {
    background-color: #25d366;
    color: white;
    padding: 15px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    position: relative;
}

.btn-close-whatsapp {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.whatsapp-body {
    padding: 20px;
}

.whatsapp-message {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.whatsapp-message p {
    margin: 0;
    font-size: 14px;
}

.whatsapp-message small {
    color: #666;
    font-size: 12px;
}

.whatsapp-option {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.whatsapp-option:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

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

@media (max-width: 768px) {
    .whatsapp-chat-box {
        width: 280px;
        right: -10px;
    }
}