.mobile-trip-date-picker-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 12121240;
    display: flex;
    align-items: flex-end;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.mobile-trip-date-picker-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.mobile-trip-date-picker-container {
    position: relative;
    width: 100%;
    background: white;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

/* Header */
.mobile-trip-date-picker-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.mobile-trip-date-picker-back {
    position: absolute;
    left: 0;
    font-size: 18px;
    color: #333;
    cursor: pointer;
}

.mobile-trip-date-picker-title {
    flex: 1;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Current Selection */
.mobile-trip-date-picker-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mobile-trip-date-picker-selected-date {
    flex: 1;
}

.selected-date-main {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.selected-time-main {
    font-size: 16px;
    color: #666;
}

.mobile-trip-date-picker-end-indicator {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
}

.mobile-trip-date-picker-end-indicator i {
    margin-right: 5px;
    font-size: 12px;
}

/* Calendar */
.mobile-trip-date-picker-calendar {
    margin-bottom: 25px;
}

.calendar-month-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.calendar-month-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.calendar-nav-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-nav-button:hover {
    background: #e0e0e0;
}

.calendar-nav-button i {
    font-size: 12px;
    color: #666;
}

.calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-days-header span {
    text-align: center;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover {
    background: #f0f0f0;
}

.calendar-day-selected {
    background: #6c5ce7 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
    z-index: 2;
}

.calendar-day-in-range {
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    position: relative;
}

.calendar-day-in-range::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(108, 92, 231, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.calendar-day-range-start {
    background: #6c5ce7 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.calendar-day-range-end {
    background: #6c5ce7 !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.calendar-day-today {
    color: #6c5ce7;
    font-weight: 600;
}

.calendar-day-other-month {
    color: #ccc;
}

.calendar-day-disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Time Selection */
.mobile-trip-date-picker-time {
    margin-bottom: 25px;
}

.time-section {
    margin-bottom: 20px;
}

.time-section-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.time-options {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.time-option {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.time-option:hover {
    border-color: #6c5ce7;
}

.time-option-selected {
    background: #333;
    color: white;
    border-color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Action Buttons */
.mobile-trip-date-picker-actions {
    display: flex;
    gap: 15px;
}

.action-button {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.action-button-clear {
    background: transparent;
    color: #6c5ce7;
    border: 1px solid #6c5ce7;
}

.action-button-clear:hover {
    background: #f8f9ff;
}

.action-button-save {
    background: #6c5ce7;
    color: white;
}

.action-button-save:hover {
    background: #5a4fd8;
}

/* Date Selection Mode */
.date-selection-mode {
    margin-bottom: 20px;
}

.mode-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 4px;
}

.mode-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.mode-tab.active {
    background: white;
    color: #6c5ce7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Desktop styles */
@media (min-width: 768px) {
    .mobile-trip-date-picker-modal {
        align-items: center;
        justify-content: center;
    }
    
    .mobile-trip-date-picker-container {
        width: 380px;
        max-width: 90vw;
        border-radius: 15px;
        max-height: 85vh;
        padding: 12px;
        overflow: hidden;
    }
    
    .mobile-trip-date-picker-header {
        margin-bottom: 10px;
    }
    
    .mobile-trip-date-picker-title {
        font-size: 16px;
    }
    
    .mobile-trip-date-picker-current {
        margin-bottom: 12px;
        padding: 8px 0;
    }
    
    .selected-date-main {
        font-size: 16px;
        margin-bottom: 3px;
    }
    
    .selected-time-main {
        font-size: 13px;
    }
    
    .date-selection-mode {
        margin-bottom: 10px;
    }
    
    .mode-tab {
        padding: 8px;
        font-size: 13px;
    }
    
    .mobile-trip-date-picker-calendar {
        margin-bottom: 12px;
    }
    
    .calendar-month-header {
        margin-bottom: 8px;
    }
    
    .calendar-month-title {
        font-size: 15px;
    }
    
    .calendar-nav-button {
        width: 25px;
        height: 25px;
    }
    
    .calendar-nav-button i {
        font-size: 10px;
    }
    
    .calendar-days-header {
        margin-bottom: 6px;
        gap: 3px;
    }
    
    .calendar-days-header span {
        font-size: 11px;
    }
    
    .calendar-days-grid {
        gap: 3px;
    }
    
    .calendar-day {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .mobile-trip-date-picker-time {
        margin-bottom: 12px;
    }
    
    .time-section {
        margin-bottom: 10px;
    }
    
    .time-section-label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .time-options {
        gap: 6px;
    }
    
    .time-option {
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 6px;
    }
    
    .mobile-trip-date-picker-actions {
        gap: 10px;
    }
    
    .action-button {
        padding: 10px;
        font-size: 13px;
        border-radius: 8px;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-trip-date-picker-container {
        padding: 15px;
    }
    
    .calendar-day {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .time-option {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* Loading state for total price section */
.form-section-total.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.form-section-total.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-section-total.loading::before {
    content: "Calculating...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Spinner animation for loading state */
.form-section-total.loading .price::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state for total price section */
.form-section-total.price-updated {
    animation: priceUpdate 0.5s ease-in-out;
}

@keyframes priceUpdate {
    0% { background-color: rgba(76, 175, 80, 0.1); }
    50% { background-color: rgba(76, 175, 80, 0.2); }
    100% { background-color: transparent; }
} 