/* MuscatHeights Case Study Matching Styles - Exact Brand Implementation */

/* Override default colors with exact case study brand color */
:root {
    --mh-brand-green: #009544;
    --mh-brand-green-hover: #007a3a;
    --mh-brand-green-light: #e6f7ed;
    --mh-border-radius: 12px;
    --mh-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --mh-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Booking Form Widget - Case Study Match */
.mh-booking-form-widget .booking-form-wrapper,
.elementor-widget-muscatheights-booking-form .booking-form-wrapper {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid #f1f5f9;
}

/* Vehicle Type Tabs - Exact Case Study Styling */
.vehicle-tab {
    border: none !important; /* Remove unwanted borders */
    outline: none !important;
    border-radius: 8px !important; /* Override any generic button border-radius */
}

.vehicle-tab.active,
.mh-booking-form-widget .active-tab,
.elementor-widget-muscatheights-booking-form .vehicle-tab.active {
    background-color: var(--mh-brand-green) !important;
    color: white !important;
    box-shadow: var(--mh-shadow);
    border: none !important; /* Remove unwanted borders */
}

.vehicle-tab:not(.active) {
    background-color: #f3f4f6 !important;
    color: #6b7280 !important;
    border: none !important; /* Remove unwanted borders */
}

/* Dropdown Arrows - Primary Color and Proper Padding */
.elementor-widget-muscatheights-booking-form select,
.mh-booking-form-widget select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23009544' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important; /* Proper padding from right */
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    padding-right: 40px !important; /* Extra padding to accommodate arrow */
}

/* Calendar Icons - Primary Color */
.elementor-widget-muscatheights-booking-form input[type="date"],
.mh-booking-form-widget input[type="date"] {
    position: relative;
    color-scheme: light;
}

.elementor-widget-muscatheights-booking-form input[type="date"]::-webkit-calendar-picker-indicator,
.mh-booking-form-widget input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="%23009544"><path fill-rule="evenodd" d="M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z" clip-rule="evenodd"/></svg>') !important;
    cursor: pointer !important;
    width: 20px !important;
    height: 20px !important;
    filter: none !important; /* Remove cyan filter */
    color: transparent !important;
}

/* Enhanced Checkbox Styling */
.elementor-widget-muscatheights-booking-form input[type="checkbox"],
.mh-booking-form-widget input[type="checkbox"] {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--mh-brand-green);
    border-radius: 6px;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.elementor-widget-muscatheights-booking-form input[type="checkbox"]:checked,
.mh-booking-form-widget input[type="checkbox"]:checked {
    background-color: var(--mh-brand-green);
    border-color: var(--mh-brand-green);
}

.elementor-widget-muscatheights-booking-form input[type="checkbox"]:checked::after,
.mh-booking-form-widget input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: #009544;
    font-size: 16px;
    font-weight: bold;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Grayed out dropdown when checkbox is checked */
.elementor-widget-muscatheights-booking-form select:disabled,
.mh-booking-form-widget select:disabled {
    background-color: #f3f4f6 !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

/* Form Elements - Case Study Input Styling */
.mh-booking-form-widget input[type="date"],
.mh-booking-form-widget select,
.elementor-widget-muscatheights-booking-form input[type="date"],
.elementor-widget-muscatheights-booking-form select {
    border: 1px solid #d1d5db;
    border-radius: var(--mh-border-radius);
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: white;
}

.mh-booking-form-widget input[type="date"]:focus,
.mh-booking-form-widget select:focus,
.elementor-widget-muscatheights-booking-form input[type="date"]:focus,
.elementor-widget-muscatheights-booking-form select:focus {
    outline: none;
    border-color: var(--mh-brand-green);
    box-shadow: 0 0 0 3px rgba(0, 149, 68, 0.1);
    ring-color: var(--mh-brand-green);
}

/* Search Button - Exact Case Study Design (Remove unwanted borders) */
.mh-booking-form-widget .search-button,
.mh-booking-form-widget button[type="submit"],
.elementor-widget-muscatheights-booking-form button[type="submit"],
.elementor-widget-muscatheights-booking-form .search-button {
    background-color: var(--mh-brand-green) !important;
    border: none !important; /* Remove unwanted borders */
    color: white;
    font-weight: 700;
    padding: 16px 48px;
    border-radius: 16px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--mh-shadow-lg);
    transform: translateY(0);
}

.mh-booking-form-widget .search-button:hover,
.mh-booking-form-widget button[type="submit"]:hover,
.elementor-widget-muscatheights-booking-form button[type="submit"]:hover,
.elementor-widget-muscatheights-booking-form .search-button:hover {
    background-color: var(--mh-brand-green-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 149, 68, 0.25);
    border: none !important; /* Ensure no borders on hover */
}

/* Car Cards Grid Widget - Case Study Styling */
.mh-car-cards-grid .car-card,
.elementor-widget-muscatheights-car-cards-grid .car-card {
    background: white;
    border-radius: var(--mh-border-radius);
    box-shadow: var(--mh-shadow);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.mh-car-cards-grid .car-card:hover,
.elementor-widget-muscatheights-car-cards-grid .car-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--mh-shadow-lg);
}

/* Fix search and filter styling for Car Cards Grid */
.elementor-widget-muscatheights-car-cards-grid input[type="text"]:focus,
.elementor-widget-muscatheights-car-cards-grid select:focus,
.mh-car-cards-grid input[type="text"]:focus,
.mh-car-cards-grid select:focus {
    border-color: var(--mh-brand-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 149, 68, 0.1) !important;
    outline: none !important;
}

/* Search icon color */
.elementor-widget-muscatheights-car-cards-grid .search-icon,
.mh-car-cards-grid .search-icon {
    color: var(--mh-brand-green) !important;
}

.mh-car-cards-grid .price-tag,
.elementor-widget-muscatheights-car-cards-grid .price-tag {
    background-color: var(--mh-brand-green);
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 8px;
}

.mh-car-cards-grid .book-now-btn,
.elementor-widget-muscatheights-car-cards-grid .book-now-btn {
    background-color: var(--mh-brand-green);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mh-car-cards-grid .book-now-btn:hover,
.elementor-widget-muscatheights-car-cards-grid .book-now-btn:hover {
    background-color: var(--mh-brand-green-hover);
    transform: translateY(-1px);
}

/* Car Carousel Widget - Case Study Navigation - Updated for green page backgrounds */
.mh-car-carousel .carousel-nav,
.elementor-widget-muscatheights-car-carousel .carousel-nav {
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--mh-brand-green);
    border: 2px solid var(--mh-brand-green);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mh-car-carousel .carousel-nav:hover,
.elementor-widget-muscatheights-car-carousel .carousel-nav:hover {
    background-color: var(--mh-brand-green);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 149, 68, 0.3);
}

.mh-car-carousel .carousel-dots .active,
.elementor-widget-muscatheights-car-carousel .carousel-dots .active {
    background-color: var(--mh-brand-green);
}

/* Enhanced carousel container and wrapper styles for green page backgrounds */
.elementor-widget-muscatheights-car-carousel .vehicle-carousel-section {
    background: transparent !important;
}

.elementor-widget-muscatheights-car-carousel .carousel-container {
    background: transparent;
}

/* Updated navigation buttons with better contrast for green backgrounds */
.elementor-widget-muscatheights-car-carousel .carousel-button {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--mh-brand-green) !important;
    border: 2px solid var(--mh-brand-green) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.elementor-widget-muscatheights-car-carousel .carousel-button:hover {
    background: var(--mh-brand-green) !important;
    color: white !important;
    box-shadow: 0 6px 20px rgba(0, 149, 68, 0.3) !important;
}

/* Single Car Widget - Case Study Details Styling */
.mh-single-car .primary-btn,
.elementor-widget-muscatheights-single-car .primary-btn {
    background-color: var(--mh-brand-green);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: var(--mh-border-radius);
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--mh-shadow);
}

.mh-single-car .primary-btn:hover,
.elementor-widget-muscatheights-single-car .primary-btn:hover {
    background-color: var(--mh-brand-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--mh-shadow-lg);
}

.mh-single-car .feature-badge,
.elementor-widget-muscatheights-single-car .feature-badge {
    background-color: var(--mh-brand-green-light);
    color: var(--mh-brand-green);
    border: 1px solid var(--mh-brand-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* Global Brand Color Overrides for All Widgets */
.elementor-widget-muscatheights-booking-form .focus\:ring-green-500:focus,
.elementor-widget-muscatheights-car-cards-grid .focus\:ring-green-500:focus,
.elementor-widget-muscatheights-car-carousel .focus\:ring-green-500:focus,
.elementor-widget-muscatheights-single-car .focus\:ring-green-500:focus {
    --tw-ring-color: var(--mh-brand-green);
}

.elementor-widget-muscatheights-booking-form .focus\:border-green-500:focus,
.elementor-widget-muscatheights-car-cards-grid .focus\:border-green-500:focus,
.elementor-widget-muscatheights-car-carousel .focus\:border-green-500:focus,
.elementor-widget-muscatheights-single-car .focus\:border-green-500:focus {
    border-color: var(--mh-brand-green);
}

.elementor-widget-muscatheights-booking-form .bg-green-600,
.elementor-widget-muscatheights-car-cards-grid .bg-green-600,
.elementor-widget-muscatheights-car-carousel .bg-green-600,
.elementor-widget-muscatheights-single-car .bg-green-600 {
    background-color: var(--mh-brand-green) !important;
}

.elementor-widget-muscatheights-booking-form .hover\:bg-green-700:hover,
.elementor-widget-muscatheights-car-cards-grid .hover\:bg-green-700:hover,
.elementor-widget-muscatheights-car-carousel .hover\:bg-green-700:hover,
.elementor-widget-muscatheights-single-car .hover\:bg-green-700:hover {
    background-color: var(--mh-brand-green-hover) !important;
}

/* Case Study Exact Matches - Override any conflicting styles */
.mh-booking-form-widget .bg-\[#009544\],
.elementor-widget-muscatheights-booking-form .bg-\[#009544\] {
    background-color: #009544 !important;
}

.mh-booking-form-widget .focus\:ring-\[#009544\]:focus,
.elementor-widget-muscatheights-booking-form .focus\:ring-\[#009544\]:focus {
    --tw-ring-color: #009544 !important;
}

.mh-booking-form-widget .focus\:border-\[#009544\]:focus,
.elementor-widget-muscatheights-booking-form .focus\:border-\[#009544\]:focus {
    border-color: #009544 !important;
}

.mh-booking-form-widget .hover\:bg-\[#007a3a\]:hover,
.elementor-widget-muscatheights-booking-form .hover\:bg-\[#007a3a\]:hover {
    background-color: #007a3a !important;
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .mh-booking-form-widget .booking-form-wrapper,
    .elementor-widget-muscatheights-booking-form .booking-form-wrapper {
        margin: 45px 16px auto;
        border-radius: 16px;
    }
    
    .mh-booking-form-widget .search-button,
    .mh-booking-form-widget button[type="submit"],
    .elementor-widget-muscatheights-booking-form .search-button,
    .elementor-widget-muscatheights-booking-form button[type="submit"] {
        width: 100%;
        padding: 16px 24px;
    }
    
    .mh-car-cards-grid .car-card,
    .elementor-widget-muscatheights-car-cards-grid .car-card {
        margin-bottom: 16px;
    }
}

/* Animation Enhancements */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mh-booking-form-widget .booking-form-wrapper,
.mh-car-cards-grid .car-card,
.mh-car-carousel .carousel-item,
.mh-single-car .car-details,
.elementor-widget-muscatheights-booking-form .booking-form-wrapper,
.elementor-widget-muscatheights-car-cards-grid .car-card,
.elementor-widget-muscatheights-car-carousel .carousel-item,
.elementor-widget-muscatheights-single-car .car-details {
    animation: slideInUp 0.6s ease-out;
}

/* Loading States */
.mh-widget-loading {
    position: relative;
    overflow: hidden;
}

.mh-widget-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* ============= CAR CARDS GRID WIDGET STYLING ============= */

/* Car Cards Grid Filters - Fix Blue Borders to Green */
.elementor-widget-muscatheights-car-cards-grid .car-rental-filters input,
.elementor-widget-muscatheights-car-cards-grid .car-rental-filters select,
.mh-car-cards-grid-widget .car-rental-filters input,
.mh-car-cards-grid-widget .car-rental-filters select {
    border: 1px solid #e5e7eb !important;
    border-radius: var(--mh-border-radius) !important;
    transition: all 0.2s ease !important;
}

.elementor-widget-muscatheights-car-cards-grid .car-rental-filters input:focus,
.elementor-widget-muscatheights-car-cards-grid .car-rental-filters select:focus,
.mh-car-cards-grid-widget .car-rental-filters input:focus,
.mh-car-cards-grid-widget .car-rental-filters select:focus {
    outline: none !important;
    border-color: var(--mh-brand-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 149, 68, 0.1) !important;
}

/* Fix Search Icon Color to Brand Green */
.elementor-widget-muscatheights-car-cards-grid .car-rental-filters svg,
.mh-car-cards-grid-widget .car-rental-filters svg {
    color: var(--mh-brand-green) !important;
}

/* Fix Search Input Placeholder Positioning */
.elementor-widget-muscatheights-car-cards-grid .car-rental-filters input[type="text"],
.mh-car-cards-grid-widget .car-rental-filters input[type="text"] {
    padding-left: 48px !important; /* Extra space for search icon */
    padding-right: 16px !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    line-height: 1.5 !important;
}

.elementor-widget-muscatheights-car-cards-grid .car-rental-filters .relative svg,
.mh-car-cards-grid-widget .car-rental-filters .relative svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--mh-brand-green);
    pointer-events: none;
}

/* Fix Car Cards Grid Dropdown Arrows - Brand Green */
.elementor-widget-muscatheights-car-cards-grid select,
.mh-car-cards-grid-widget select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23009544' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 12px center !important;
    background-repeat: no-repeat !important;
    background-size: 16px 16px !important;
    padding-right: 40px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

/* Car Cards Grid Filter Bar Styling */
.elementor-widget-muscatheights-car-cards-grid .car-rental-filters,
.mh-car-cards-grid-widget .car-rental-filters {
    background: white;
    border-radius: 24px !important;
    box-shadow: var(--mh-shadow-lg);
    padding: 32px;
    margin-bottom: 32px;
    border: 1px solid #f8fafc;
}

/* Car Card Hover Effects */
.elementor-widget-muscatheights-car-cards-grid .car-rental-card:hover,
.mh-car-cards-grid-widget .car-rental-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--mh-shadow-lg);
    transition: all 0.3s ease;
}

/* Car Card Button Styling */
.elementor-widget-muscatheights-car-cards-grid .btn-primary,
.mh-car-cards-grid-widget .btn-primary {
    background-color: var(--mh-brand-green) !important;
    border: none !important;
    color: white !important;
    border-radius: var(--mh-border-radius) !important;
    transition: all 0.2s ease !important;
}

.elementor-widget-muscatheights-car-cards-grid .btn-primary:hover,
.mh-car-cards-grid-widget .btn-primary:hover {
    background-color: var(--mh-brand-green-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 149, 68, 0.3);
}

.elementor-widget-muscatheights-car-cards-grid .btn-secondary,
.mh-car-cards-grid-widget .btn-secondary {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #64748b !important;
    border-radius: var(--mh-border-radius) !important;
    transition: all 0.2s ease !important;
}

.elementor-widget-muscatheights-car-cards-grid .btn-secondary:hover,
.mh-car-cards-grid-widget .btn-secondary:hover {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    transform: translateY(-1px);
}

/* ============= END CAR CARDS GRID STYLING ============= */