:root {
    --primary-color: #d90134;
    --secondary-color: #d90134;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Custom Button Styles */
.btn-primary-custom {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary-custom:hover {
    background-color: #b80128;
    border-color: #b80128;
    color: white;
}

/* ===================================
   NAVIGATION BAR - WHITE BACKGROUND
   =================================== */
.navbar {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.navbar-brand {
    color: #d90134 !important;
    font-weight: 700;
}

.navbar-brand:hover {
    color: #b80128 !important;
}

.navbar-nav .nav-link {
    color: #333333 !important;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #d90134 !important;
}

.navbar-toggler {
    border-color: #d90134;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d90134' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Book Now Button in Navbar */
.navbar .btn-danger {
    background-color: #d90134 !important;
    border-color: #d90134 !important;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.navbar .btn-danger:hover {
    background-color: #b80128 !important;
    border-color: #b80128 !important;
    color: #ffffff !important;
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-nav {
        background-color: #ffffff;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .btn-danger {
        margin-top: 10px;
        width: 100%;
    }
}

/* ===================================
   HERO SLIDER - CENTERED LEFT
   =================================== */
.hero-slider-container {
    position: relative;
}

.hero-slide {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat;
}

/* Flat overlay - no gradient */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(217, 1, 52, 0.7); /* Flat #d90134 with opacity */
    z-index: 1;
}

/* Content wrapper */
.hero-slide .container {
    position: relative;
    z-index: 2;
    padding-top: 0;
    padding-bottom: 0;
}

/* Text content */
.hero-slide .col-lg-8 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Text styling */
.hero-slide h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-slide .lead {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-delay {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.animate-fade-in-delay-2 {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.6;
    transition: opacity 0.3s;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Carousel indicators */
.carousel-indicators {
    bottom: 30px;
    z-index: 10;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
}

.carousel-indicators button.active {
    opacity: 1;
    background-color: #fff;
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slide {
        min-height: 600px;
    }
    
    .hero-slide h1 {
        font-size: 2.5rem;
    }
    
    .hero-slide .lead {
        font-size: 1.1rem;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .hero-slide {
        min-height: 650px;
    }
    
    .hero-slide h1 {
        font-size: 3rem;
    }
}

@media (min-width: 992px) {
    .hero-slide {
        min-height: 700px;
    }
    
    .hero-slide h1 {
        font-size: 3.5rem;
    }
}

/* ===================================
   SECTION TITLES
   =================================== */
.section-title {
    color: #d90134;
    font-weight: 700;
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #d90134;
    margin: 10px auto 0;
}

/* ===================================
   CARDS AND HIGHLIGHTS
   =================================== */
.bg-danger {
    background-color: #d90134 !important;
}

/* Links */
a {
    color: #d90134;
}

a:hover {
    color: #b80128;
}

/* Pagination */
.pagination .page-link {
    color: #d90134;
    border-color: #dee2e6;
    margin: 0 3px;
    border-radius: 5px !important;
}

.pagination .page-link:hover {
    background-color: rgba(217, 1, 52, 0.1);
    color: #d90134;
    border-color: #d90134;
}

.pagination .page-item.active .page-link {
    background-color: #d90134;
    border-color: #d90134;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
}

/* Service Cards */
.service-card-hover:hover {
    box-shadow: 0 10px 30px rgba(217, 1, 52, 0.2) !important;
}

/* ===================================
   SERVICE CARDS
   =================================== */
.service-card {
    border: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-bottom: 4px solid #d90134;
}

.service-icon {
    font-size: 2.5rem;
    color: #d90134;
    margin-bottom: 1rem;
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */
.feature-box {
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(217, 1, 52, 0.15);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    background-color: rgba(217, 1, 52, 0.1);
    color: #d90134;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* ===================================
   APPOINTMENT FORM STYLING
   =================================== */
.appointment-wrapper {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.appointment-sidebar {
    background-color: #d90134;
    color: white;
    padding: 2rem;
}

.appointment-sidebar h4 {
    color: #fff;
}

.appointment-sidebar .contact-item {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.appointment-sidebar .contact-item i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #fff;
}

.form-control, .form-select {
    border: 1px solid #ddd;
    padding: 0.75rem;
    border-radius: 5px;
}

.form-control:focus, .form-select:focus {
    border-color: #d90134;
    box-shadow: 0 0 0 0.2rem rgba(217, 1, 52, 0.25);
}

.form-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

/* Appointment Form Enhanced Styling */
.input-group-text {
    background-color: #f8f9fa;
    border-left: none;
    color: #6c757d;
}

.form-control:focus + .input-group-text,
.form-select:focus + .input-group-text {
    border-left: none;
}

.input-group .form-control:first-child,
.input-group .form-select:first-child {
    border-right: none;
}

.input-group .form-control:focus,
.input-group .form-select:focus {
    z-index: 1;
}

/* Time and Date Pickers */
input[type="time"],
input[type="date"] {
    cursor: pointer;
}

/* Required field indicator - FIXED to use primary color */
.text-danger {
    color: #d90134 !important;
}

/* ===================================
   CALL TO ACTION SECTIONS - FLAT COLOR
   =================================== */
section.py-5[style*="background: linear-gradient"] {
    background: #d90134 !important;
}

/* Override any inline gradient backgrounds */
[style*="linear-gradient(135deg, #a43c3d"],
[style*="linear-gradient(135deg, #d90134"] {
    background: #d90134 !important;
}

/* ===================================
   UTILITY CLASSES
   =================================== */
.text-primary {
    color: #d90134 !important;
}

.bg-primary {
    background-color: #d90134 !important;
}

.border-primary {
    border-color: #d90134 !important;
}

/* Hover effects */
.hover-primary:hover {
    color: #d90134 !important;
}

/* Focus states */
.btn:focus,
.btn:active {
    box-shadow: 0 0 0 0.2rem rgba(217, 1, 52, 0.25) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .display-5 {
        font-size: 2rem;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    .pagination .page-link {
        margin: 2px;
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}