/**
 * Ferry Booking Form - Module-Specific Styles
 * Shared components loaded from: /css/shared-booking-components.css
 * This file only contains ferry-specific styles.
 */

/* ============================================
   Container
   ============================================ */
.ferry-booking-container {
    position: relative !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 30px;
}

/* ============================================
   Header
   ============================================ */
.ferry-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 24px;
}

.ferry-booking-header .header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ferry-booking-header .header-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.ferry-booking-header .header-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.ferry-booking-header .price-badge {
    text-align: right;
}

.ferry-booking-header .price-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.ferry-booking-header .price-value {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #FF6B35;
}

/* ============================================
   Trip Type Selection
   ============================================ */
.trip-type-section {
    margin-bottom: 24px;
}

.trip-type-section .button-group {
    display: flex;
    gap: 12px;
}

.btn-trip-type {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    color: #333;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-trip-type:hover {
    border-color: #00A651;
    background: #f0fdf4;
}

.btn-trip-type.active {
    border-color: #00A651;
    background: #00A651;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.btn-trip-type i {
    font-size: 16px;
}

.btn-trip-type:active {
    transform: scale(0.97);
}

/* ============================================
   Route Selection
   ============================================ */
.route-select-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.route-select-wrapper .form-select {
    flex: 1;
}

.btn-flip-route {
    width: 48px;
    min-width: 48px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    font-size: 16px;
}

.btn-flip-route:hover {
    background: #f0fdf4;
    border-color: #00A651;
    color: #00A651;
    transform: rotate(180deg);
}

/* ============================================
   Date Row Container (Horizontal Layout)
   ============================================ */
.date-row-container {
    margin-bottom: 20px;
}

.date-columns {
    display: grid;
    gap: 16px;
}

.date-columns.single-column {
    grid-template-columns: 1fr;
}

.date-columns.two-columns {
    grid-template-columns: 1fr 1fr;
}

.date-column {
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Return date — green theme */
.date-button.return.selected {
    background: linear-gradient(135deg, #00A651 0%, #00C853 100%);
    border-color: #00A651;
}

.time-select option {
    padding: 10px;
}

/* ============================================
   Price Type Display (Phase 6)
   ============================================ */
.price-type-badge {
    margin-left: 8px;
    font-weight: normal;
}

.price-type-badge .badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.price-type-badge .badge-info {
    background: #17a2b8;
    color: white;
}

.price-type-badge .badge-warning {
    background: #ffc107;
    color: #212529;
}

.price-type-badge .fa-moon {
    margin-left: 4px;
}

/* Base .price-type-display / .price-type-row / .price-type-label
   moved to shared-booking-components.css — ferry-specific badge styles below */

.price-type-display .badge {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.price-type-display .badge-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.price-type-display .badge-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #212529;
}

.price-type-display .badge .fa-moon {
    margin-left: 6px;
    font-size: 11px;
}

/* ============================================
   Payment Methods
   ============================================ */
.ferry-payment-methods {
    padding: 25px 0 !important;
    margin: 20px 0 !important;
}

.ferry-payment-methods .section-header {
    margin-bottom: 20px !important;
}

.ferry-payment-methods .section-title {
    font-size: 1.15rem !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ferry-payment-methods .section-title i {
    color: #007bff !important;
    font-size: 1.1rem !important;
}

.payment-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 15px !important;
    margin-bottom: 15px !important;
}

.payment-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    padding: 15px 10px !important;
    border: 1px solid #e8e8e8 !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: all 0.2s ease !important;
}

.payment-item:hover {
    border-color: #007bff !important;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

.payment-icon {
    width: 48px !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 10px !important;
}

.payment-icon img {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
}

.payment-icon i {
    font-size: 28px !important;
    color: #6c757d !important;
}

.payment-name {
    font-size: 0.85rem !important;
    color: #555 !important;
    text-align: center !important;
    font-weight: 500 !important;
}

.payment-contact {
    text-align: center !important;
    padding: 20px !important;
    background: #f8f9fa !important;
    border-radius: 10px !important;
}

.payment-contact p {
    margin-bottom: 15px !important;
    color: #666 !important;
}

/* ============================================
   Loading Overlay
   ============================================ */
.ferry-loading-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    border-radius: 16px !important;
}

.loading-spinner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    color: #FF6B35 !important;
}

.loading-spinner i {
    font-size: 36px !important;
}

.loading-spinner span {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #333 !important;
}

/* ============================================
   Ferry-Specific Button Enhancements
   ============================================ */
.ferry-booking-container .btn-book-now {
    position: relative !important;
    overflow: hidden !important;
}

.ferry-booking-container .btn-book-now::after {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 0 !important;
    height: 0 !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    transform: translate(-50%, -50%) !important;
    transition: width 0.3s, height 0.3s !important;
}

.ferry-booking-container .btn-book-now:active::after {
    width: 200px !important;
    height: 200px !important;
}

.ferry-booking-container .btn-book-now:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.ferry-booking-container .btn-book-now:not(:disabled):hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

/* ============================================
   Ferry-Specific Validation
   ============================================ */
.ferry-booking-container .validation-message {
    font-size: 0.8rem !important;
    color: #dc3545 !important;
    margin-top: 5px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.ferry-booking-container .validation-message i {
    font-size: 0.75rem !important;
}

.ferry-booking-container .field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2) !important;
}

.ferry-booking-container .field-success {
    border-color: #28a745 !important;
}

.ferry-booking-container .form-select:focus,
.ferry-booking-container .date-button:focus {
    outline: none !important;
    border-color: #FF6B35 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15) !important;
}

/* ============================================
   Responsive — Ferry-Specific
   ============================================ */
@media (max-width: 768px) {
    .ferry-booking-container {
        padding: 16px;
        border-radius: 12px;
    }

    .ferry-booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ferry-booking-header .price-badge {
        text-align: left;
    }

    .trip-type-section .button-group {
        flex-direction: column;
    }

    .date-columns.two-columns {
        grid-template-columns: 1fr;
    }

    .btn-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .ferry-booking-header .header-title {
        font-size: 18px;
    }

    .ferry-booking-header .price-value {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .payment-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    
    .payment-item {
        padding: 12px 8px !important;
    }
    
    .payment-icon {
        width: 40px !important;
        height: 40px !important;
    }
    
    .payment-name {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .ferry-payment-methods .section-title {
        font-size: 1rem !important;
    }
}

/* ============================================
   Print — Ferry-Specific
   ============================================ */
@media print {
    .ferry-payment-methods,
    .ferry-loading-overlay {
        display: none !important;
    }
}

/* ============================================
   Key Info Module (Hotel Service Features)
   ============================================ */
.bc-single-boat .hotel-service-feature,
.hotel-service-feature {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin-bottom: 24px !important;
}

.hotel-service-feature .row {
    margin: 0 -10px !important;
}

.hotel-service-feature .item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 10px !important;
}

.hotel-service-feature .item .icon {
    width: 48px !important;
    height: 48px !important;
    background: #fff !important;
    border: 1px solid #DEDEDE !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #5E6D77 !important;
    font-size: 21px !important;
    flex-shrink: 0 !important;
}

.hotel-service-feature .item .info {
    flex: 1 !important;
}

.hotel-service-feature .item .info h4.name,
.hotel-service-feature .item .info .name {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--heading-color, #1a2b48) !important;
    line-height: 26px !important;
    margin: 0 0 4px 0 !important;
}

.hotel-service-feature .item .info p.value,
.hotel-service-feature .item .info .value {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--grey-color, #5E6D77) !important;
    margin: 0 !important;
    line-height: 22px !important;
}

@media (max-width: 768px) {
    .hotel-service-feature .item {
        padding: 8px 0 !important;
    }
    
    .hotel-service-feature {
        padding: 15px !important;
    }
}
