/* Booking Page Styles */

/* Booking Page Title */
.booking-page-title {
    text-align: center;
    margin-bottom: 2rem;
}

.booking-page-title h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.booking-page-title p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0 auto 1rem;
    max-width: 500px;
}

/* Booking Section */
.booking-section {
    min-height: 100vh; /* Full viewport height */
    background: #f8fafc;
    padding: 10vh 20px; /* Vertical centering with top and bottom padding */
    box-sizing: border-box;
}

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Removed Progress Steps - deleted for mobile responsiveness */

/* Booking Form */
.booking-form {
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.booking-step {
    display: none;
}

.booking-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

.booking-step h2 {
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
}

/* Service Selection */
.service-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.service-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-option:hover {
    border-color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 62, 80, 0.1);
}

.service-option.selected {
    border-color: #2c3e50;
    background: #f8fafc;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-option h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.service-option p {
    color: #64748b;
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Date & Time Selection */
.calendar-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-navigation {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-nav {
    background: none;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #2c3e50;
    cursor: pointer;
    transition: background 0.3s ease;
}

.calendar-nav:hover {
    background: #e2e8f0;
}

.today-button {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
}

.today-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.dual-calendar-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.month-calendar {
    display: flex;
    flex-direction: column;
}

.month-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.weekdays-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.5rem;
}

.weekdays-header div {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    padding: 0.5rem 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    user-select: none;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    width: 36px;
    height: 36px;
    margin: 0 auto;
}

.calendar-day:hover:not(.disabled) {
    background: #e2e8f0;
}

.calendar-day.selected {
    background: #111827;
    color: white;
}

.calendar-day.today {
    font-weight: 600;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.calendar-day.disabled {
    color: #cbd5e1;
    cursor: default;
    opacity: 0.6;
}

.calendar-day.outside-month {
    opacity: 0.3;
}

.time-container {
    background: white;
    border-top: 1px solid #e2e8f0;
    padding: 2rem 0;
    margin-top: 1rem;
}

.selected-date-label {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.time-slot:hover:not(.unavailable) {
    border-color: #2c3e50;
    background: #f8fafc;
}

.time-slot.selected {
    background: #111827;
    color: white;
    border-color: #111827;
}

.time-slot.unavailable {
    background: #f1f5f9;
    color: #cbd5e1;
    cursor: not-allowed;
    opacity: 0.7;
}



.vehicle-option.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
    position: relative;
}

.vehicle-option.unavailable::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    border-radius: 16px;
}

.loading-slots {
    text-align: center;
    padding: 2rem;
    color: #64748b;
    font-style: italic;
}

/* Vehicle Selection */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.vehicle-option {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vehicle-option:hover {
    border-color: #2c3e50;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.1);
}

.vehicle-option.selected {
    border-color: #2c3e50;
}

.vehicle-option img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.vehicle-info {
    padding: 1.25rem;
}

.vehicle-info h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.vehicle-info p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.vehicle-price {
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Customer Details */
.details-form {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group label {
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Booking Summary */
.booking-summary {
    margin-bottom: 2rem;
}

.summary-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
}

.summary-card h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .label {
    color: #64748b;
    font-weight: 500;
}

.summary-item .value {
    color: #2c3e50;
    font-weight: 600;
}

.summary-total {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total .label,
.summary-total .value {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

/* Navigation Buttons */
.booking-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    
}

.booking-navigation .btn-secondary,
.booking-navigation .btn-primary {
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.booking-navigation .btn-secondary {
    background: #f1f5f9;
    color: #64748b;
}

.booking-navigation .btn-secondary:hover {
    background: #e2e8f0;
    color: #2c3e50;
}

.booking-navigation .btn-primary {
    background: #2c3e50;
    color: white;
    margin-left: auto;
}

.booking-navigation .btn-primary:hover {
    background: #1a2b3d;
}

/* Responsive Design */
@media (max-width: 900px) {
    .service-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }
    
    .service-option {
        padding: 1.2rem 0.8rem;
    }
    
    .service-option h3 {
        font-size: 1rem;
    }
    
    .service-option p {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .booking-form {
        padding: 2rem 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .dual-calendar-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Hide second calendar month on mobile */
    #nextMonthCalendar {
        display: none;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .details-form {
        gap: 0.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .booking-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .booking-navigation .btn-primary {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .booking-navigation .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .calendar-actions {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        width: 100%;
    }
    
    .calendar-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: 300px;
        position: relative;
    }
    
    /* Position the Today button in the absolute center */
    .calendar-actions .today-button {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    /* Position arrows on far left and far right */
    .calendar-navigation #prevMonth {
        margin-right: auto;
    }
    
    .calendar-navigation #nextMonth {
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .booking-section {
        padding: 20px 0 60px;
    }
    
    .booking-container {
        margin: 0 1rem;
        border-radius: 16px;
    }
    
    .booking-form {
        padding: 1.5rem 1rem;
    }
    
    .booking-page-title h1 {
        font-size: 2rem;
    }
    
    .booking-page-title p {
        font-size: 1rem;
    }
    
    .booking-step h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-option {
        padding: 1rem;
    }
    
    .service-option h3 {
        font-size: 1rem;
    }
    
    .service-option p {
        font-size: 0.8rem;
    }
    
    .vehicle-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .vehicle-option {
        padding: 1rem;
    }
    
    .calendar-nav {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .today-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .time-slots {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .time-slot {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .booking-navigation .btn-secondary,
    .booking-navigation .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #2c3e50;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Wedding Packages Grid - Using same styling as wedding-transportation.html */
.packages-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
    align-items: stretch;
}

.package-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    flex: 1;
    max-width: 350px;
    min-width: 280px;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.package-card.selected {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.3);
    border: 2px solid #3b82f6;
}

.package-card.featured {
    border: 2px solid #f59e0b;
}

.package-card.featured.selected {
    border: 2px solid #3b82f6;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.package-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.package-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.package-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.duration {
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.package-info ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.package-info li {
    padding: 0.25rem 0;
    color: #4b5563;
    font-size: 0.875rem;
    position: relative;
    padding-left: 1.25rem;
}

.package-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: 600;
}

.package-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    margin-top: auto;
}

.package-price span {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 400;
}

/* Responsive adjustments for wedding packages */
@media (max-width: 1024px) {
    .packages-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .package-card {
        max-width: 100%;
        width: 100%;
        max-width: 400px;
        display: block;
    }
    
    .package-info {
        display: block;
    }
    
    .package-price {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .packages-grid {
        gap: 1rem;
    }
    
    .package-card {
        min-width: auto;
    }
    
    .package-card img {
        height: 150px;
    }
    
    .package-info {
        padding: 1rem;
    }
    
    .package-info h3 {
        font-size: 1.125rem;
    }
} 