/**
 * Codedecorator Triprex - Custom Booking Fields Styles
 */

.booking-form-passenger-info {
    //background: #f8f9fa;
    //padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.booking-form-passenger-info h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 10px;
}

/* Accordion Styles */
.passenger-forms-container {
    margin-top: 15px;
}

.accordion-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 15px;
    overflow: hidden;
}

.accordion-item.passenger-form-item>h2.accordion-header {
    margin-bottom: 0;
}

.accordion-button {
    background: #fff;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    padding: 15px 20px;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    //background: #007bff;
    background: #FBB03B;
    color: #fff;
}

.accordion-button:hover {
    background: #f0f0f0;
}

.accordion-button:not(.collapsed):hover {
    //background: #0056b3;
    background: #FBB03B;
}

.accordion-button.complete {
    background: #d4edda;
    border-left: 4px solid #28a745;
}

.accordion-button.incomplete {
    //background: #fff3cd;
    background: #FBB03B;
    //border-left: 4px solid #ffc107;
}

.accordion-button:not(.collapsed).complete {
    background: #28a745;
    color: #fff;
}

.accordion-button::after {
    content: '\f282';
    font-family: 'bootstrap-icons';
    font-size: 18px;
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
}

.passenger-title {
    flex: 1;
}

.passenger-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 500;
}

.passenger-status i {
    font-size: 16px;
}

.accordion-collapse {
    transition: height 0.3s ease;
    display: none;
}

.accordion-collapse.show {
    display: block;
}

.accordion-body {
    padding: 20px;
    background: #fff;
}

.passenger-fields-wrap .form-group {
    margin-bottom: 20px;
}

.passenger-fields-wrap label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.passenger-fields-wrap label .required {
    color: #dc3545;
    margin-left: 3px;
}

.passenger-fields-wrap .form-control {
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: #fff;
}

.passenger-fields-wrap .form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.passenger-fields-wrap .form-control.error {
    border-color: #dc3545;
}

.passenger-fields-wrap .form-control.error:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* File Upload Styles */
.file-upload-wrapper {
    position: relative;
}

.file-upload-input {
    display: none;
}

.file-upload-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    background: #63AB45;
    color: #000;
    border: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-upload-btn:hover {
    background: #63AB45;
}

.file-upload-btn.loading {
    background: #6c757d;
    cursor: not-allowed;
}

.file-upload-btn i {
    font-size: 16px;
}

.file-upload-wrapper .file-name {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.file-preview {
    position: relative;
    margin-top: 10px;
    display: inline-block;
}

.file-preview img {
    max-width: 150px;
    max-height: 150px;
    border-radius: 5px;
    border: 2px solid #ddd;
    object-fit: cover;
}

.file-preview .remove-file {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.file-preview .remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

.file-preview .remove-file i {
    font-size: 16px;
}

.form-text.text-muted {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    display: block;
}

/* Cart Display Styles */
.passenger-info-header {
    font-weight: 600 !important;
    color: #333 !important;
    margin-top: 15px !important;
    padding-top: 15px !important;
    border-top: 1px solid #e0e0e0 !important;
}

/* Validation Styles */
.validation-summary {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease-out;
}

.validation-summary strong {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 20px;
}

.validation-summary li {
    margin-bottom: 5px;
}

.validation-summary i {
    margin-right: 5px;
}

.field-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.passenger-field.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5;
}

.passenger-field.error:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Empty State */
.passenger-forms-container:empty::after {
    content: 'Please select the number of adults and children to proceed';
    display: block;
    padding: 30px;
    text-align: center;
    color: #999;
    font-style: italic;
    background: #f9f9f9;
    border-radius: 6px;
    border: 2px dashed #ddd;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .booking-form-passenger-info {
        padding: 20px 15px;
    }

    .accordion-button {
        font-size: 14px;
        padding: 12px 15px;
    }

    .passenger-status {
        font-size: 12px;
    }

    .file-upload-display {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-upload-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Animation for loading state */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.file-upload-btn.loading span {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Success state for uploaded files */
.file-upload-wrapper.uploaded .file-upload-btn {
    background: #28a745;
}

.file-upload-wrapper.uploaded .file-upload-btn:hover {
    background: #218838;
}

/* Bootstrap Icons fallback */
.accordion-button::after {
    content: '▼';
    background-image: none !important;
    background-image: none !important;
    margin-left: 7px;
    font-size: 13px;
}
.accordion-header>.accordion-button{
    padding-right: 5px;
}
.bi-check-circle::before {
    content: '✓';
}

.bi-exclamation-circle::before {
    content: '!';
}