/**
 * Boat Rental Manager - Booking Engine Specific Styles
 * 
 * @package BoatRentalManager
 */

/* Booking Engine Container */
.brm-booking-engine {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Steps Indicator */
.brm-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0;
    list-style: none;
}

.brm-step-item {
    flex: 1;
    text-align: center;
    position: relative;
}

.brm-step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: -1;
}

.brm-step-item.completed::after {
    background: #28a745;
}

.brm-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 2px solid #ddd;
    font-weight: 600;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.brm-step-item.active .brm-step-number {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.brm-step-item.completed .brm-step-number {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

.brm-step-title {
    font-size: 14px;
    color: #666;
}

.brm-step-item.active .brm-step-title {
    color: #0073aa;
    font-weight: 600;
}

/* Route Info Box */
#brm-route-info {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brm-route-icon {
    font-size: 48px;
    color: #0073aa;
}

.brm-route-details h4 {
    margin: 0 0 10px;
    color: #333;
}

.brm-route-path {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #666;
}

.brm-route-arrow {
    color: #0073aa;
}

/* Calendar Enhanced */
.brm-calendar-container {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.brm-calendar-grid {
    margin-top: 20px;
}

.brm-cal-weekday {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    background: #f9f9f9;
}

.brm-cal-day {
    position: relative;
    min-height: 60px;
    transition: all 0.2s ease;
}

.brm-cal-day.brm-today {
    border: 2px solid #0073aa;
}

.brm-cal-day.brm-selected {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.brm-day-slots {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* Time Slots Enhanced */
.brm-time-slot {
    position: relative;
    overflow: hidden;
}

.brm-time-slot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0,115,170,0.1);
    transition: width 0.3s ease;
}

.brm-time-slot:hover::before {
    width: 100%;
}

.brm-time-slot-price {
    display: block;
    font-size: 14px;
    color: #28a745;
    margin-top: 5px;
}

/* Boat Cards Enhanced */
.brm-boat-card {
    position: relative;
    background: #fff;
}

.brm-boat-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b6b;
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.brm-boat-badge.captain {
    background: #0073aa;
}

.brm-boat-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.brm-boat-feature {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
}

.brm-boat-select-btn {
    width: 100%;
    padding: 10px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.brm-boat-select-btn:hover {
    background: #005a87;
}

.brm-boat-card.brm-selected .brm-boat-select-btn {
    background: #28a745;
}

/* Extra Services Enhanced */
.brm-extra-service-item {
    transition: all 0.2s ease;
}

.brm-extra-service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brm-extra-service-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.brm-extra-service-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

/* Customer Form Enhanced */
.brm-customer-form {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.brm-form-group.required label::after {
    content: ' *';
    color: #dc3545;
}

.brm-passenger-info {
    background: #e8f4f8;
    border-left: 4px solid #17a2b8;
    padding: 15px;
    margin: 20px 0;
}

/* Booking Summary Enhanced */
.brm-booking-summary {
    position: sticky;
    top: 20px;
}

.brm-summary-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

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

.brm-summary-section h5 {
    margin: 0 0 10px;
    color: #0073aa;
    font-size: 14px;
    text-transform: uppercase;
}

/* Animation Classes */
.brm-slide-in-left {
    animation: slideInLeft 0.3s ease;
}

.brm-slide-in-right {
    animation: slideInRight 0.3s ease;
}

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

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

/* Success Screen */
.brm-booking-success {
    text-align: center;
    padding: 40px;
}

.brm-success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease;
}

.brm-success-checkmark svg {
    width: 50px;
    height: 50px;
    fill: #fff;
}

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

.brm-booking-number {
    display: inline-block;
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 18px;
    font-weight: 600;
    margin: 10px 0;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .brm-steps-indicator {
        display: none;
    }
    
    .brm-booking-engine {
        padding: 15px;
    }
    
    #brm-route-info {
        flex-direction: column;
        text-align: center;
    }
    
    .brm-boat-card {
        margin-bottom: 15px;
    }
    
    .brm-booking-summary {
        position: static;
        margin-top: 30px;
    }
}

/* Print Styles */
@media print {
    .brm-booking-navigation,
    .brm-progress-bar,
    .brm-btn {
        display: none !important;
    }
    
    .brm-booking-summary {
        border: 2px solid #000;
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .brm-booking-engine {
        background: #1a1a1a;
        color: #f0f0f0;
    }
    
    .brm-form-group input,
    .brm-form-group select,
    .brm-form-group textarea {
        background: #2a2a2a;
        color: #f0f0f0;
        border-color: #444;
    }
    
    .brm-cal-day {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .brm-boat-card {
        background: #2a2a2a;
        border-color: #444;
    }
}
/* AGGIUNGI SOLO QUESTI STILI AL TUO booking-engine.css */

/* Step Content Management - NECESSARIO per la navigazione */
.brm-step-content {
    animation: fadeIn 0.3s ease;
}

.brm-step-content[style*="display: none"] {
    display: none !important;
}

/* Button Disabled State - NECESSARIO per il funzionamento */
.brm-btn:disabled,
.brm-btn-disabled {
    background: #ccc !important;
    color: #888 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Step Navigation - NECESSARIO per i pulsanti */
.brm-step-navigation {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Boat Grid per Step 3 - NECESSARIO */
.brm-boat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.brm-boat-card.brm-selected {
    border-color: #28a745 !important;
    box-shadow: 0 4px 12px rgba(40,167,69,0.2);
}

.brm-select-boat {
    width: 100%;
    margin-top: 15px;
}

/* Notices - NECESSARIO per i messaggi */
.brm-notices {
    margin-bottom: 20px;
}

.brm-notice {
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brm-notice-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.brm-notice-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.brm-notice-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.brm-notice-close:hover {
    opacity: 1;
}

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

/* Loading state per boat loading */
#brm-boat-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Responsive per step navigation */
@media (max-width: 768px) {
    .brm-step-navigation {
        flex-direction: column;
    }
    
    .brm-step-navigation .brm-btn {
        width: 100%;
    }
}
/* Step Navigation Buttons - Production Styles */
.brm-step-navigation {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.brm-booking-summary {
    background: #f0f8ff;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #cce7ff;
}

.brm-booking-summary h4 {
    margin: 0 0 15px 0;
    color: #0066cc;
}

.brm-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

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

/* Error styling for passenger count */
.brm-form-group input.brm-error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.brm-passenger-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}
/* Boat Selection Feedback */
.brm-boat-card {
    transition: all 0.3s ease;
    cursor: default;
}

.brm-boat-card.brm-selected {
    border: 2px solid #28a745 !important;
    background: #f0fff4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.2);
}

.brm-select-boat {
    transition: all 0.3s ease;
}

.brm-select-boat:disabled {
    background: #28a745 !important;
    border-color: #28a745 !important;
    cursor: default !important;
}

.brm-no-image {
    background: #f5f5f5;
    color: #ddd;
}
/* Step Servizi Extra */
.brm-extra-services-intro {
    text-align: center;
    margin-bottom: 30px;
    font-size: 16px;
    color: #666;
}

.brm-extra-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.brm-extra-service-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.brm-extra-service-card:hover {
    border-color: #0073aa;
    box-shadow: 0 4px 12px rgba(0,115,170,0.1);
}

.brm-extra-service-card.selected {
    border-color: #0073aa;
    background-color: #f0f8ff;
}

.brm-extra-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.brm-extra-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
}

.brm-extra-price {
    background: #0073aa;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.brm-extra-description {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.5;
}

.brm-extra-actions {
    margin-top: 15px;
}

.brm-btn-add-extra {
    width: 100%;
    padding: 10px;
    background: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.brm-btn-add-extra:hover {
    background: #e0e0e0;
}

.brm-extra-service-card.selected .brm-btn-add-extra {
    background: #0073aa;
    color: white;
}

.brm-extra-quantity {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brm-extra-quantity input {
    width: 60px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.brm-extra-services-summary {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.brm-selected-extra-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.brm-extra-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #333;
    display: flex;
    justify-content: space-between;
    font-size: 18px;
}

.brm-no-extras,
.brm-error {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border-radius: 8px;
    color: #666;
}

#brm-skip-extras {
    background: #f0f0f0;
    color: #666;
}

#brm-skip-extras:hover {
    background: #e0e0e0;
    color: #333;
}