/* Ferry Booking Form - Step-by-step Process Styles */

.ferry-booking-section {
    width: 100%;
    margin: 40px 0;
    padding: 0;
}

.ferry-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Step Indicator */
.booking-steps-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.booking-steps-indicator .step {
    flex: 0 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.booking-steps-indicator .step-connector {
    flex: 1;
    height: 2px;
    background: #e0e0e0;
    margin: 0 10px;
    position: relative;
    top: -20px;
}

.booking-steps-indicator .step-connector.active {
    background: #00A651;
}

.booking-steps-indicator .step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #999;
    font-size: 20px;
    font-weight: 600;
    border: 3px solid #e0e0e0;
    transition: all 0.3s ease;
}

.booking-steps-indicator .step.active .step-number {
    background: #00A651;
    color: #fff;
    border-color: #00A651;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
}

.booking-steps-indicator .step.completed .step-number {
    background: #00A651;
    color: #fff;
    border-color: #00A651;
}

.booking-steps-indicator .step-label {
    display: block;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.booking-steps-indicator .step.active .step-label {
    color: #00A651;
    font-weight: 600;
}

/* Step Content */
.step-content {
    animation: fadeIn 0.4s ease;
}

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

.step-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

/* Trip Type Toggle */
.trip-type-toggle {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.trip-type-toggle button {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    background: #fff;
    color: #666;
    cursor: pointer;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

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

.trip-type-toggle button.active {
    border-color: #00A651;
    background: #00A651;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}

.trip-type-toggle button i {
    font-size: 18px;
}

/* Route Selectors */
.route-selectors {
    margin-bottom: 30px;
}

.route-selector-wrapper {
    margin-bottom: 20px;
}

.route-selector-wrapper label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.route-select {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    white-space: normal;
    height: auto;
    min-height: 50px;
}

.route-select:focus {
    border-color: #00A651;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.1);
}

/* Route Info Display */
.route-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.route-path {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.port-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.port-info i {
    color: #00A651;
    font-size: 18px;
}

.route-arrow {
    color: #00A651;
    font-size: 24px;
}

/* Date Selector */
.date-selector {
    margin-bottom: 25px;
}

.date-selector label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.date-input-wrapper {
    position: relative;
    cursor: pointer;
}

.date-input-wrapper input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-input-wrapper input:focus {
    border-color: #00A651;
    outline: none;
}

.date-input-wrapper i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00A651;
    font-size: 18px;
    pointer-events: none;
}

/* Passengers Section */
.passengers-section {
    margin-bottom: 30px;
}

.passengers-section > label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.passenger-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

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

.passenger-info {
    flex: 1;
}

.passenger-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.passenger-desc {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.passenger-price {
    font-size: 15px;
    font-weight: 600;
    color: #00A651;
}

.passenger-counter {
    display: flex;
    align-items: center;
    gap: 15px;
}

.passenger-counter .btn-counter {
    width: 40px;
    height: 40px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.passenger-counter .btn-counter:hover {
    border-color: #00A651;
    background: #00A651;
    color: #fff;
}

.passenger-counter input {
    width: 60px;
    height: 40px;
    text-align: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Schedule Section */
.schedule-section {
    margin-bottom: 30px;
}

.schedule-section label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.schedule-list {
    display: grid;
    gap: 15px;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.schedule-item:hover:not(.disabled) {
    border-color: #00A651;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.15);
}

.schedule-item.selected {
    border-color: #00A651;
    background: #e8f5e9;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.2);
}

.schedule-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.schedule-time i {
    color: #00A651;
    font-size: 18px;
}

.schedule-capacity {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.schedule-capacity i {
    color: #00A651;
}

.schedule-check {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00A651;
    font-size: 24px;
}

/* Booking Summary */
.booking-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

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

.summary-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.summary-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 15px;
}

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

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

.summary-item.total {
    font-size: 18px;
    padding-top: 15px;
}

.summary-item.total .label {
    color: #333;
    font-weight: 700;
}

.summary-item .price-value {
    color: #00A651;
    font-size: 20px;
    font-weight: 700;
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.step-actions .btn {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-actions .btn-prev {
    background: #f5f5f5;
    color: #666;
}

.step-actions .btn-prev:hover {
    background: #e0e0e0;
}

.step-actions .btn-next,
.step-actions .btn-book {
    background: #00A651;
    color: #fff;
    flex: 1;
    justify-content: center;
}

.step-actions .btn-next:hover,
.step-actions .btn-book:hover {
    background: #008f44;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
    transform: translateY(-2px);
}

.step-actions .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.step-actions .btn-book {
    background: #00A651;
}

.step-actions .btn-book:hover {
    background: #008f44;
}

/* Alert Styles */
.alert-text {
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
}

.alert-text.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-text.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert-info {
    padding: 15px;
    background: #e3f2fd;
    color: #1976d2;
    border: 1px solid #90caf9;
    border-radius: 8px;
    text-align: center;
}

/* Voyage Selection Section */
.voyage-selection-section {
    margin-top: 30px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    animation: fadeIn 0.4s ease;
}

.voyage-section {
    margin-bottom: 30px;
}

.voyage-section:last-child {
    margin-bottom: 0;
}

.voyage-section h5 {
    font-size: 18px;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.voyage-section h5 i {
    font-size: 20px;
}

/* Voyage Cards */
.voyage-list {
    display: grid;
    gap: 15px;
}

.voyage-card {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.voyage-card:hover {
    border-color: #00A651;
    background: #f0fdf4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.15);
}

.voyage-card.selected {
    border-color: #00A651;
    background: #e8f5e9;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.25);
}

.voyage-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00A651;
    font-size: 24px;
}

/* Voyage Summary */
.voyage-summary {
    margin-top: 20px;
    padding: 20px;
    background: #e8f5e9;
    border-radius: 10px;
    border: 2px solid #00A651;
}

.voyage-summary .label {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.voyage-summary #selected-voyage-info {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.voyage-summary #voyage_total_price {
    font-size: 28px;
    font-weight: 700;
    color: #00A651;
}

/* Buttons */
.btn-check-availability,
.btn-book-now {
    width: 100%;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-check-availability {
    background: #00A651;
    color: #fff;
}

.btn-check-availability:hover:not(:disabled) {
    background: #008f44;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
    transform: translateY(-2px);
}

.btn-check-availability:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-book-now {
    background: #00A651;
    color: #fff;
}

.btn-book-now:hover:not(:disabled) {
    background: #008f44;
    box-shadow: 0 4px 12px rgba(0, 166, 81, 0.3);
    transform: translateY(-2px);
}

.btn-book-now:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .ferry-booking-container {
        padding: 20px;
    }

    .booking-steps-indicator {
        padding: 0;
        margin-bottom: 30px;
    }

    .booking-steps-indicator .step-number {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 16px;
    }

    .booking-steps-indicator .step-label {
        font-size: 11px;
        margin-top: 8px;
    }

    .booking-steps-indicator .step-connector {
        margin: 0 5px;
    }

    .step-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .trip-type-toggle {
        flex-direction: column;
        gap: 10px;
    }

    .route-path {
        flex-direction: column;
        gap: 15px;
    }

    .route-arrow {
        transform: rotate(90deg);
    }

    .passenger-type {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .passenger-counter {
        width: 100%;
        justify-content: flex-end;
    }

    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-right: 50px;
    }

    .step-actions {
        flex-direction: column;
    }

    .step-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .booking-summary {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .booking-steps-indicator .step-label {
        display: none;
    }

    .ferry-booking-container {
        padding: 15px;
        border-radius: 8px;
    }
}
