/* Booking Page Specific Styles */

/* Reset and Base */
.booking-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fcfd 0%, #fffeff 100%);
    display: flex;
    flex-direction: column;
}

/* Header */
.booking-header {
    background: rgba(255, 254, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 192, 212, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.booking-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #191970;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-btn:hover {
    color: #00c0d4;
}

.booking-logo h2 {
    color: #00c0d4;
    font-size: 1.5rem;
    margin: 0;
}

/* Progress Indicator */
.progress-container {
    background: white;
    padding: 1rem 0;
    border-bottom: 1px solid #e0f4f6;
    overflow-x: auto;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: #e0f4f6;
    z-index: 1;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    min-width: 60px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0f4f6;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.step-label {
    font-size: 0.75rem;
    color: #64748b;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-number {
    background: #00c0d4;
    color: white;
}

.progress-step.active .step-label {
    color: #00c0d4;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #10d876;
    color: white;
}

.progress-step.completed .step-label {
    color: #10d876;
}

/* Main Content */
.booking-main {
    flex: 1;
    padding: 2rem 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.booking-step {
    display: none;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 2rem;
}

.step-header h2 {
    color: #191970;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.step-header p {
    color: #64748b;
    font-size: 1rem;
}

/* Service Cards */
.services-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e0f4f6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c0d4, #191970);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before,
.service-card.selected::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: #00c0d4;
    box-shadow: 0 8px 25px rgba(0, 192, 212, 0.15);
    transform: translateY(-2px);
}

.service-card.selected {
    border-color: #00c0d4;
    background: linear-gradient(135deg, #f8fcfd, #fffeff);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.service-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #191970;
    margin: 0;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #00c0d4;
}

.service-duration {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.service-description {
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.service-features {
    list-style: none;
    margin-top: 1rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

.service-features li i {
    color: #10d876;
    font-size: 0.8rem;
}

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

.vehicle-type-card {
    background: white;
    border: 2px solid #e0f4f6;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.vehicle-type-card:hover {
    border-color: #00c0d4;
    background: #f8fcfd;
}

.vehicle-type-card.selected {
    border-color: #00c0d4;
    background: linear-gradient(135deg, #f8fcfd, #fffeff);
}

.vehicle-type-card.selected::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #00c0d4;
    font-size: 0.8rem;
}

.vehicle-icon {
    font-size: 2rem;
    color: #00c0d4;
    margin-bottom: 0.5rem;
}

.vehicle-name {
    font-weight: 600;
    color: #191970;
    margin-bottom: 0.25rem;
}

.vehicle-modifier {
    font-size: 0.8rem;
    color: #64748b;
}

/* Form Styles */
.booking-form {
    margin-bottom: 2rem;
}

.form-section {
    margin-bottom: 1.5rem;
}

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

.form-row.triple {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #191970;
    margin-bottom: 0.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #191970;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0f4f6;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00c0d4;
    box-shadow: 0 0 0 3px rgba(0, 192, 212, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.error-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* Address Suggestions */
.address-suggestions {
    position: relative;
    z-index: 10;
}

.suggestion-item {
    background: white;
    border: 1px solid #e0f4f6;
    border-top: none;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f8fcfd;
}

.suggestion-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Service Area Check */
.service-area-check {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    border: 2px solid #e0f4f6;
    margin-top: 1rem;
}

.area-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.area-status.checking {
    color: #64748b;
}

.area-status.available {
    color: #10d876;
}

.area-status.unavailable {
    color: #ef4444;
}

/* Calendar */
.scheduling-container {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.calendar-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e0f4f6;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.calendar-header h3 {
    color: #191970;
    font-size: 1.1rem;
    margin: 0;
}

.calendar-nav {
    background: none;
    border: none;
    color: #00c0d4;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background 0.3s ease;
}

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

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
}

.calendar-day.header {
    color: #64748b;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: default;
}

.calendar-day.other-month {
    color: #cbd5e1;
    cursor: not-allowed;
}

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

.calendar-day.today {
    background: #f8fcfd;
    color: #00c0d4;
    font-weight: 600;
}

.calendar-day.available:hover {
    background: #f8fcfd;
    color: #00c0d4;
}

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

.calendar-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #10d876;
}

/* Time Slots */
.time-slots-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e0f4f6;
}

.time-slots-section h3 {
    color: #191970;
    margin-bottom: 1rem;
}

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

.time-slot {
    background: white;
    border: 2px solid #e0f4f6;
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover {
    border-color: #00c0d4;
    background: #f8fcfd;
}

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

.time-slot.unavailable {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #e2e8f0;
}

.no-date-selected {
    grid-column: 1 / -1;
    text-align: center;
    color: #64748b;
    padding: 2rem;
}

.no-date-selected i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

/* Checkboxes */
.consent-checkboxes {
    margin-top: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e0f4f6;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #00c0d4;
    border-color: #00c0d4;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.7rem;
}

.label-text {
    color: #64748b;
    font-size: 0.9rem;
}

/* Booking Summary */
.booking-summary {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #e0f4f6;
    margin-bottom: 2rem;
}

.summary-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.summary-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.summary-section h3 {
    color: #191970;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.summary-item {
    color: #64748b;
    line-height: 1.5;
}

.summary-item strong {
    color: #191970;
}

.pricing-breakdown {
    background: #f8fcfd;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    color: #64748b;
}

.price-line:last-child {
    margin-bottom: 0;
}

.tax-line {
    padding-top: 0.75rem;
    border-top: 1px solid #e0f4f6;
}

.total-line {
    font-size: 1.1rem;
    font-weight: 700;
    color: #191970;
    padding-top: 0.75rem;
    border-top: 2px solid #e0f4f6;
}

/* Bottom Navigation */
.booking-footer {
    background: white;
    border-top: 1px solid #e0f4f6;
    padding: 1rem;
    position: sticky;
    bottom: 0;
    z-index: 50;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.footer-buttons button {
    flex: 1;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #00c0d4, #191970);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 192, 212, 0.3);
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e0f4f6;
}

.btn-secondary:hover {
    border-color: #00c0d4;
    color: #00c0d4;
}

.payment-btn {
    background: linear-gradient(135deg, #10d876, #059669);
}

.payment-btn:hover {
    box-shadow: 0 8px 25px rgba(16, 216, 118, 0.3);
}

/* Loading States */
.loading-placeholder {
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.loading-placeholder i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00c0d4;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.loading-content i {
    font-size: 2rem;
    color: #00c0d4;
    margin-bottom: 1rem;
}

.loading-content p {
    color: #64748b;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-main {
        padding: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .form-row.triple {
        grid-template-columns: 1fr;
    }
    
    .progress-bar {
        padding: 0 0.5rem;
    }
    
    .step-label {
        font-size: 0.7rem;
    }
    
    .vehicle-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .scheduling-container {
        gap: 1rem;
    }
    
    .footer-buttons {
        flex-direction: column;
    }
    
    .footer-buttons button {
        padding: 0.75rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .vehicle-types-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-grid {
        gap: 0.25rem;
    }
    
    .calendar-day {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-name {
        font-size: 1.1rem;
    }
}

/* Step 7: Success Page Styles */
.success-header {
    text-align: center;
    padding: 2rem 0;
}

.success-header .success-icon {
    font-size: 4rem;
    color: #4CAF50;
    margin-bottom: 1rem;
    animation: successPulse 1s ease-out;
}

.success-header h2 {
    color: #2E7D32;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.success-header p {
    color: #666;
    font-size: 1.1rem;
}

@keyframes successPulse {
    0% { transform: scale(0.5); opacity: 0; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4CAF50;
}

.confirmation-details {
    display: grid;
    gap: 1rem;
}

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

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

.confirmation-item .label {
    color: #666;
    font-weight: 500;
}

.confirmation-item .value {
    color: #333;
    font-weight: 600;
}

.confirmation-item .value.price {
    color: #4CAF50;
    font-size: 1.1rem;
}

.communication-status {
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #4CAF50;
}

.status-item .success-icon {
    color: #4CAF50;
    font-size: 1.5rem;
    min-width: 24px;
}

.status-content h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1rem;
}

.status-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.next-steps {
    margin: 2rem 0;
}

.next-steps h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.steps-list {
    display: grid;
    gap: 1rem;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-number {
    background: #00c0d4;
    color: white;
    font-weight: bold;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.step-content h4 {
    margin: 0 0 0.25rem 0;
    color: #333;
    font-size: 1rem;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.btn-outline {
    background: transparent;
    border: 2px solid #00c0d4;
    color: #00c0d4;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.btn-outline:hover {
    background: #00c0d4;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 192, 212, 0.3);
}

/* Mobile optimizations for success page */
@media (max-width: 768px) {
    .success-header {
        padding: 1.5rem 0;
    }
    
    .success-header .success-icon {
        font-size: 3rem;
    }
    
    .success-header h2 {
        font-size: 1.5rem;
    }
    
    .confirmation-card {
        margin: 1rem 0;
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons button,
    .action-buttons .btn-outline {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .status-item {
        padding: 0.75rem;
    }
    
    .step-item {
        padding: 0.75rem;
    }
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.radio-option:hover, .checkbox-option:hover {
    background-color: #f8fafc;
}

.radio-option input[type="radio"], 
.checkbox-option input[type="checkbox"] {
    margin: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.radiomark, .checkmark {
    display: none; /* Hide custom checkmarks for now, use native styling */
}

/* Pay Now Button Styling */
.btn-pay {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
    color: white !important;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.875rem 2rem !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-pay:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40) !important;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    transform: translateY(-1px);
}