/**
 * Elementor Widgets CSS for MuscatHeights Booking System
 * 
 * @package MuscatHeights_Booking_System
 * @subpackage Elementor/Assets
 * @since 1.0.0
 */

/* ==========================================================================
   Base Elementor Widget Styles
   ========================================================================== */

.muscatheights-elementor-booking-form-widget,
.muscatheights-elementor-calendar-widget,
.muscatheights-elementor-price-calculator-widget,
.muscatheights-elementor-car-categories-widget,
.muscatheights-elementor-locations-widget,
.muscatheights-elementor-customer-dashboard-widget,
.muscatheights-elementor-booking-status-widget {
    width: 100%;
    box-sizing: border-box;
}

/* Car Image Border Radius */
.muscatheights-car-image {
    border-radius: 15px !important;
    -webkit-border-radius: 15px !important;
    -moz-border-radius: 15px !important;
    -ms-border-radius: 15px !important;
    -o-border-radius: 15px !important;
    overflow: hidden;
}

/* ==========================================================================
   Booking Form Widget Styles
   ========================================================================== */

.muscatheights-elementor-booking-form-widget .muscatheights-booking-form {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
}

.muscatheights-elementor-booking-form-widget .booking-steps,
.muscatheights-elementor-booking-form-widget .step-indicator {
    display: flex;
    justify-content: space-between;
    background: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
}

.muscatheights-elementor-booking-form-widget .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    opacity: 0.5;
}

.muscatheights-elementor-booking-form-widget .step.active {
    opacity: 1;
}

.muscatheights-elementor-booking-form-widget .step-number {
    width: 40px;
    height: 40px;
    background: #e2e8f0;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.muscatheights-elementor-booking-form-widget .step.active .step-number {
    background: #007cba;
    color: #fff;
}

.muscatheights-elementor-booking-form-widget .form-group {
    margin-bottom: 20px;
}

.muscatheights-elementor-booking-form-widget .form-label,
.muscatheights-elementor-booking-form-widget label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.muscatheights-elementor-booking-form-widget .form-control,
.muscatheights-elementor-booking-form-widget input,
.muscatheights-elementor-booking-form-widget select,
.muscatheights-elementor-booking-form-widget textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.muscatheights-elementor-booking-form-widget .form-control:focus,
.muscatheights-elementor-booking-form-widget input:focus,
.muscatheights-elementor-booking-form-widget select:focus,
.muscatheights-elementor-booking-form-widget textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.muscatheights-elementor-booking-form-widget .btn-primary,
.muscatheights-elementor-booking-form-widget .btn-next,
.muscatheights-elementor-booking-form-widget .btn-submit {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.muscatheights-elementor-booking-form-widget .btn-primary:hover,
.muscatheights-elementor-booking-form-widget .btn-next:hover,
.muscatheights-elementor-booking-form-widget .btn-submit:hover {
    background: #005a87;
}

.muscatheights-elementor-booking-form-widget .btn-secondary,
.muscatheights-elementor-booking-form-widget .btn-back {
    background: #6c757d;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.muscatheights-elementor-booking-form-widget .btn-secondary:hover,
.muscatheights-elementor-booking-form-widget .btn-back:hover {
    background: #5a6268;
}

.muscatheights-elementor-booking-form-widget .booking-summary,
.muscatheights-elementor-booking-form-widget .price-summary {
    background: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.muscatheights-elementor-booking-form-widget .summary-title,
.muscatheights-elementor-booking-form-widget .summary h3,
.muscatheights-elementor-booking-form-widget .summary h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.muscatheights-elementor-booking-form-widget .total-amount,
.muscatheights-elementor-booking-form-widget .final-price {
    font-size: 24px;
    font-weight: 700;
    color: #007cba;
}

/* Form Style Variations */
.muscatheights-elementor-booking-form-widget.form-style-compact .form-group {
    margin-bottom: 15px;
}

.muscatheights-elementor-booking-form-widget.form-style-compact .form-control {
    padding: 8px 12px;
}

.muscatheights-elementor-booking-form-widget.form-style-wide {
    max-width: 100%;
}

.muscatheights-elementor-booking-form-widget.form-style-wide .form-row {
    display: flex;
    gap: 20px;
}

.muscatheights-elementor-booking-form-widget.form-style-card .booking-step {
    background: #fff;
    padding: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* ==========================================================================
   Calendar Widget Styles
   ========================================================================== */

.muscatheights-elementor-calendar-widget .calendar-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    min-height: 400px;
}

/* ==========================================================================
   Price Calculator Widget Styles
   ========================================================================== */

.muscatheights-elementor-price-calculator-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    /* ========== Booking Form Widget Mobile UI ========== */
    .muscatheights-elementor-booking-form-widget .search-form-horizontal {
        grid-template-columns: 1fr;
    }

    .muscatheights-elementor-booking-form-widget .booking-steps,
    .muscatheights-elementor-booking-form-widget .step-indicator {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .muscatheights-elementor-booking-form-widget .step {
        flex-direction: row;
        text-align: left;
    }

    .muscatheights-elementor-booking-form-widget .step-number {
        margin-right: 10px;
        margin-bottom: 0;
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    /* Mobile responsive for form rows */
    .muscatheights-elementor-booking-form-widget .form-row {
        flex-direction: column;
    }
    
    /* Mobile responsive for booking form */
    .muscatheights-elementor-booking-form-widget .grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .muscatheights-elementor-booking-form-widget .form-control,
    .muscatheights-elementor-booking-form-widget input,
    .muscatheights-elementor-booking-form-widget select,
    .muscatheights-elementor-booking-form-widget textarea {
        padding: 14px 12px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .muscatheights-elementor-booking-form-widget button,
    .muscatheights-elementor-booking-form-widget .btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .muscatheights-elementor-booking-form-widget .booking-summary,
    .muscatheights-elementor-booking-form-widget .price-summary {
        padding: 15px;
        margin-top: 15px;
    }
    
    /* ========== Single Car Widget Mobile UI ========== */
    .muscatheights-elementor-single-car-widget .single-car-wrapper .grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .muscatheights-elementor-single-car-widget .lg\:col-span-2,
    .muscatheights-elementor-single-car-widget .lg\:col-span-3 {
        grid-column: span 1 !important;
    }
    
    .muscatheights-elementor-single-car-widget .muscatheights-car-image {
        height: auto;
        min-height: 200px;
    }
    
    .muscatheights-elementor-single-car-widget .car-features,
    .muscatheights-elementor-single-car-widget .car-details {
        padding: 15px;
    }
    
    .muscatheights-elementor-single-car-widget .feature-item,
    .muscatheights-elementor-single-car-widget .detail-item {
        padding: 12px;
        font-size: 15px;
    }
    
    /* ========== Single Car Simple Widget Mobile UI ========== */
    .muscatheights-elementor-single-car-simple-widget .grid {
        grid-template-columns: 1fr !important;
    }
    
    .muscatheights-elementor-single-car-simple-widget .car-card {
        padding: 15px;
    }
    
    /* ========== Car Cards Grid Widget Mobile UI ========== */
    .muscatheights-elementor-car-cards-grid-widget .muscatheights-car-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 10px;
    }
    
    .muscatheights-elementor-car-cards-grid-widget .car-card {
        padding: 15px;
    }
    
    .muscatheights-elementor-car-cards-grid-widget .car-card-image {
        height: 200px;
    }
    
    .muscatheights-elementor-car-cards-grid-widget .car-card-title {
        font-size: 18px;
    }
    
    .muscatheights-elementor-car-cards-grid-widget .car-card-price {
        font-size: 20px;
    }
    
    .muscatheights-elementor-car-cards-grid-widget .car-card-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .muscatheights-elementor-car-cards-grid-widget .btn-book-now,
    .muscatheights-elementor-car-cards-grid-widget .car-card-button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }
    
    /* ========== Car Carousel Widget Mobile UI ========== */
    .muscatheights-elementor-car-carousel-widget .muscatheights-car-carousel .carousel-track {
        justify-content: flex-start;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .muscatheights-elementor-car-carousel-widget .car-card {
        min-width: 90%;
        scroll-snap-align: center;
        flex-shrink: 0;
    }
    
    .muscatheights-elementor-car-carousel-widget .carousel-controls {
        display: none; /* Hide arrows on mobile, use swipe instead */
    }
    
    .muscatheights-elementor-car-carousel-widget .carousel-dots {
        padding: 20px 0;
        gap: 8px;
    }
    
    .muscatheights-elementor-car-carousel-widget .carousel-dot {
        width: 10px;
        height: 10px;
        min-width: 10px;
    }
    
    /* ========== Checkout Widget Mobile UI ========== */
    .muscatheights-elementor-checkout-widget .checkout-container {
        padding: 15px;
    }
    
    .muscatheights-elementor-checkout-widget .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .muscatheights-elementor-checkout-widget .order-summary {
        position: static;
        padding: 15px;
    }
    
    .muscatheights-elementor-checkout-widget .form-section {
        padding: 15px;
    }
    
    .muscatheights-elementor-checkout-widget input,
    .muscatheights-elementor-checkout-widget select {
        padding: 14px 12px;
        font-size: 16px;
        min-height: 48px;
    }
    
    .muscatheights-elementor-checkout-widget .btn-complete-booking,
    .muscatheights-elementor-checkout-widget .checkout-button {
        width: 100%;
        padding: 16px;
        font-size: 17px;
        min-height: 52px;
        font-weight: 600;
    }
    
    .muscatheights-elementor-checkout-widget .payment-methods {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .muscatheights-elementor-checkout-widget .payment-method {
        padding: 15px;
        min-height: 60px;
    }
    
    /* ========== Booking Confirmation Widget Mobile UI ========== */
    .muscatheights-elementor-booking-confirmation-widget .confirmation-container {
        padding: 15px;
    }
    
    .muscatheights-elementor-booking-confirmation-widget .confirmation-card {
        padding: 20px 15px;
    }
    
    .muscatheights-elementor-booking-confirmation-widget .booking-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .muscatheights-elementor-booking-confirmation-widget .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .muscatheights-elementor-booking-confirmation-widget .confirmation-number {
        font-size: 24px;
    }
    
    .muscatheights-elementor-booking-confirmation-widget .action-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .muscatheights-elementor-booking-confirmation-widget button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        min-height: 48px;
    }
    
    /* ========== Shared Mobile Adjustments ========== */
    .muscatheights-elementor-booking-form-widget .p-4,
    .muscatheights-elementor-booking-form-widget .p-6,
    .muscatheights-elementor-booking-form-widget .p-8,
    .muscatheights-elementor-single-car-widget .p-4,
    .muscatheights-elementor-single-car-widget .p-6,
    .muscatheights-elementor-single-car-widget .p-8,
    .muscatheights-elementor-checkout-widget .p-4,
    .muscatheights-elementor-checkout-widget .p-6,
    .muscatheights-elementor-checkout-widget .p-8 {
        padding: 1rem !important;
    }
    
    .muscatheights-elementor-booking-form-widget .flex-col,
    .muscatheights-elementor-single-car-widget .flex-col,
    .muscatheights-elementor-checkout-widget .flex-col {
        flex-direction: column;
    }
    
    .muscatheights-elementor-booking-form-widget .sm\:flex-row,
    .muscatheights-elementor-single-car-widget .sm\:flex-row,
    .muscatheights-elementor-checkout-widget .sm\:flex-row {
        flex-direction: column !important;
    }
    
    /* Mobile typography adjustments */
    .muscatheights-elementor-booking-form-widget h1,
    .muscatheights-elementor-booking-form-widget h2,
    .muscatheights-elementor-single-car-widget h1,
    .muscatheights-elementor-single-car-widget h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .muscatheights-elementor-booking-form-widget h3,
    .muscatheights-elementor-single-car-widget h3 {
        font-size: 20px;
        line-height: 1.3;
    }
    
    /* Mobile spacing improvements */
    .muscatheights-elementor-booking-form-widget .space-y-4 > *,
    .muscatheights-elementor-single-car-widget .space-y-4 > *,
    .muscatheights-elementor-checkout-widget .space-y-4 > * {
        margin-bottom: 1rem;
    }
    
    .muscatheights-elementor-booking-form-widget .gap-4,
    .muscatheights-elementor-single-car-widget .gap-4,
    .muscatheights-elementor-checkout-widget .gap-4 {
        gap: 1rem !important;
    }
}

/* Extra small devices (max-width: 575px) */
@media (max-width: 575px) {
    .muscatheights-elementor-booking-form-widget .booking-summary,
    .muscatheights-elementor-booking-form-widget .price-summary {
        padding: 12px;
    }
    
    .muscatheights-elementor-booking-form-widget .total-amount,
    .muscatheights-elementor-booking-form-widget .final-price {
        font-size: 20px;
    }
    
    .muscatheights-elementor-car-cards-grid-widget .car-card {
        padding: 12px;
    }
    
    .muscatheights-elementor-single-car-widget .car-features,
    .muscatheights-elementor-single-car-widget .car-details {
        padding: 12px;
    }
    
    .muscatheights-elementor-checkout-widget .checkout-container {
        padding: 10px;
    }
}

/* Tablet responsive */
@media (min-width: 769px) and (max-width: 1024px) {
    .muscatheights-elementor-booking-form-widget .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .single-car-wrapper .lg\:col-span-2 {
        grid-column: span 2 !important;
    }
    
    /* Car cards grid for tablet */
    .muscatheights-car-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Large screen optimizations */
@media (min-width: 1440px) {
    .container {
        max-width: 1280px;
    }
    
    /* Better spacing on large screens */
    .muscatheights-elementor-booking-form-widget .max-w-6xl {
        max-width: 80rem;
    }
}