/* Hero Section Image Styling */
/* .herosection {
    width: 100%;
    height: 50vh; 
    overflow: hidden;
    font-family: "Manrope", serif;
} */


.ticketDetailsSection{
    .ticketdetails {
        font-family: 'Montserrat', sans-serif;
        background-color: #f8f9fa;
        color: var(--dark-color);
       
        }
    
    .ticketdetails {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-color);
   
    }

   /* Main Section Container */
.ticketDetailsSection {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 120px);
    padding: 2rem 0;
    margin-top: 120px !important;
    overflow: hidden;
}

/* Background Image Overlay */
/* .ticketDetailsSection::before {
    content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            /* Semi-transparent black overlay */
            z-index: 1;
/* } */ 

/* Optional Dark Overlay */
.ticketDetailsSection::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.797);
    z-index: 1;
}

/* Content Container */
.ticketDetailsSection .container {
    position: relative;
    z-index: 1;
}

.ticket-container {
    max-width: 800px;
    margin: 40px auto; /* Changed from '40px' to '40px auto' for horizontal centering */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
    background: white;
}

.ticket-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.ticket-header h1 {
 
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 2rem;
}

.ticket-header p {
    opacity: 0.9;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.ticket-header::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.ticket-body {
    padding: 30px;
}

.ticket-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 2px;
    /* margin-left:10px; */

    padding: 15px;
    background: var(--light-color) !important;
    border-radius: 10px;

  
}

.ticket-section-divider {
    position: relative;
    text-align: center;
  
    border-top: 1px dashed #000;
    border-image: repeating-linear-gradient(to right, #000, #000 5px, transparent 5px, transparent 8px) 1;
}

.section-title {
    position: relative;
    top: -12px;
    background: white;
    padding: 0 15px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.detail-item {
    margin-bottom: 15px;
}

.detail-item h5 {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-item p {
    font-weight: 500;
    margin-bottom: 0;
    font-size: 1.1rem;
    word-wrap: break-word; /* Ensures long words/strings break */
    overflow-wrap: break-word; /* Modern alternative */
    white-space: normal; /* Overrides any 'nowrap' if set */
}
.ticket-holder-section{
    background: var(--light-color) !important;
}
/* Base styles remain the same */
.vessel-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: var(--light-color) !important;
    border-radius: 10px;
}

.vessel-info i {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 15px;
}

.vessel-details {
    flex-grow: 1;
    min-width: 0; /* Allows text truncation */
}

.vessel-header {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on mobile */
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
    gap: 8px; /* Adds spacing when wrapped */
}

.vessel-details h4 {
    color: var(--dark-color);
    margin: 0;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.reference-number {
    background: rgba(221, 51, 51, 0.54);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 600;
    white-space: nowrap;
}

.vessel-details p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}
.backbutton{
      margin-left:255px
}
@media (max-width: 1400px) {
    .backbutton{
        margin-left:160px
  }
}

@media (max-width: 1200px) {
    .backbutton{
        margin-left:67px
  }
}
@media (max-width: 991px) {
    .backbutton{
        margin-left:6px
  }
}
  
/* Mobile-specific styles */
@media (max-width: 768px) {
    .backbutton{
        margin-left:18px
  }
    .vessel-info {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px;
    }
    
    .vessel-info i {
        font-size: 1.5rem;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .vessel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .vessel-details h4 {
        font-size: 1.1rem;
        white-space: normal;
    }
    
    .reference-number {
        align-self: flex-start; /* Keeps ref number left-aligned */
        margin-top: 5px;
    }
    
    .vessel-details p {
        font-size: 0.9rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .vessel-info {
        padding: 10px;
    }
    
    .vessel-details h4 {
        font-size: 1rem;
    }
    
    .reference-number {
        font-size: 0.75rem;
        padding: 2px 8px;
    }
}

.passenger-section {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    /* margin-bottom: 25px; */
    margin: auto 30px 25px;
}

/* Base styles */
.ticket-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 15px 0;
    border-top: 1px dashed #ddd;
    text-align: center;
}

.ticket-footer .text-center {
    width: 100%;
}

.ticket-footer h5 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.ticket-footer p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Button container */
.ticket-footer .d-flex {
    width: 100%;
    max-width: 600px;
}

/* Button styles */
.btn-request-action
 {
    border-color: #666;
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
   
}

.btn-download{
    background: linear-gradient(  45deg, var(--primary), var(--primary-dark));
    width: 100%;
    padding: 12px 15px;
    font-size: 0.95rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--secondary);
}

.btn-request-action i,
.btn-download i {
    font-size: 1rem;
    margin-right: 8px;
}

/* Hover effects */
.btn-request-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgb(255, 255, 255);
    color: #ffffff;
}

/* Tablet and desktop styles */
@media (min-width: 768px) {
    .ticket-footer {
        padding-top: 25px;
        gap: 20px;
    }
    
    .ticket-footer h5 {
        font-size: 1.2rem;
    }
    
    .ticket-footer p {
        font-size: 1rem;
    }
    
    .btn-request-action,
    .btn-download {
        width: auto;
        padding: 10px 20px;
        margin-bottom: 0;
    }
}

/* Small mobile adjustments */
@media (max-width: 400px) {
    .ticket-footer {
        padding: 15px 10px 0;
    }
    
    .ticket-footer h5 {
        font-size: 1rem;
    }
    
    .ticket-footer p {
        font-size: 0.9rem;
    }
    
    .btn-request-action,
    .btn-download {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-request-action i,
    .btn-download i {
        font-size: 0.9rem;
        margin-right: 6px;
    }
}

.ticket-ribbon {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 0.8rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .ticket-container {
        margin: 20px 15px;
    }
    
    .ticket-header, .ticket-body {
        padding: 20px;
    }
    
    .ticket-header h1 {
        font-size: 1.8rem;
    }
    
    .ticket-details {
        grid-template-columns: 1fr;
    }
    
    .ticket-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
 
}


/* Passenger List Premium Styles */
.passengerlist-container {
    /* border-radius: 10px; */
    overflow: hidden;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08); */
    margin-bottom: 30px;
    /* padding: 30px; */
}

.passengerlist-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 20px 25px;
    position: relative;
    overflow: hidden;
}

.passengerlist-header::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(30deg);
}

.passenger-header-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
}

.header-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.passengerlist-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    flex-grow: 1;
}

.passenger-count-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

.passenger-section {
    background: white;
    padding: 0;
}



.passenger-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.passenger-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
}

.passenger-table tr:last-child td {
    border-bottom: none;
}

.passenger-table {
    width: 100%;
    border-collapse: collapse;
    /* margin: 0; */
}

/* .passenger-table th {
    background-color: #f8fafc;
    color: var(--primary-color);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
} */

.passenger-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 500;
    vertical-align: middle;
}

.passenger-table tr:last-child td {
    border-bottom: none;
}

.passenger-table tr:hover td {
    background-color: rgba(52, 152, 219, 0.03);
}

/* Badge Styles */
.badge {
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .passenger-header-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-icon {
        margin-bottom: 10px;
    }
    
    .passenger-count-badge {
        margin-top: 10px;
        align-self: flex-end;
    }
    
    .passenger-table th, 
    .passenger-table td {
        padding: 12px 15px;
        font-size: 0.85rem;
    }
    
    .passenger-table {
        display: block;
        overflow-x: auto;
    }
}

}

.dropify-wrapper .dropify-message p {
    font-size: 12px !important; /* Reduce font size */
    line-height: 1.2 !important; /* Adjust line height */
}

.dropify-wrapper .dropify-message span {
    font-size: 10px !important; /* Smaller text for additional info */
}


#otpverificationsection,
#ticketDetailsSection,
#refundFormSection,
#rescheduleFormSection {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.smooth-transition {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.premium-alert {
    display: flex;
    align-items: center;
    flex: 1 1 auto; /* Allow flex items to grow and shrink */
    width: 300px; /* Fixed width for consistency */
    max-width: 50%; /* Prevent overflow */
    padding: 1rem 1.5rem; /* Comfortable padding */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    background: linear-gradient(135deg, #fff3cd, #ffe69c); /* Default gradient (yellow) */
    color: #000000; /* Default text color */
    font-weight: 500; /* Slightly bolder text */
    font-family: Arial, sans-serif; /* Use a modern font */
    border: none; /* Remove default border */
    transition: all 0.3s ease; /* Smooth transitions for hover effects */
    justify-content: flex-start; /* Align content to the left */
}

/* Hover effect for interactivity */
.premium-alert:hover {
    transform: translateY(-2px); /* Slight lift on hover */
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

/* Styles for the icon */
.premium-alert i {
    flex-shrink: 0; /* Prevent the icon from shrinking */
    font-size: 1.2rem; /* Icon size */
    color: inherit; /* Inherit text color */
    margin-right: 0.75rem; /* Add spacing between icon and text */
}

/* Styles for the text span */
.premium-alert span {
    flex: 1; /* Make spans grow equally */
    text-align: left; /* Left-align text */
    white-space: normal; /* Allow wrapping */
    word-break: break-word;

    align-items: center;
    justify-content: flex-start; /* Align text to the left */
    min-height: 40px; /* Ensures consistency */
}



.alert-text strong {
    width: 100%; /* Take full width */
    text-align: center; /* Center only the bold text */
    display: block; /* Ensure it behaves as a block for centering */
}

/* Add this CSS to change the appearance of the disabled button */
#rescheduleRequestBtn:disabled {
    background-color: #d6d6d6; /* Light gray background */
    border-color: #bdbdbd; /* Lighter border */
    color: #888; /* Muted text */
    cursor: not-allowed; /* Change cursor to indicate it's disabled */
    transform: none; /* Prevent scaling on hover */
}

/* Optionally, you can also do this for the Refund button */
#refundRequestBtn:disabled {
    background-color: #d6d6d6; /* Light gray background */
    border-color: #bdbdbd; /* Lighter border */
    color: #888; /* Muted text */
    cursor: not-allowed; /* Change cursor to indicate it's disabled */
    transform: none; /* Prevent scaling on hover */
}




/* Responsive adjustments */
@media (max-width: 768px) {
    .premium-alert {
        flex-direction: column; /* Stack icon and text vertically on small screens */
        align-items: flex-start; /* Align items to the start */
        padding: 1rem; /* Reduce padding for smaller screens */
    }

    .premium-alert i {
        margin-bottom: 0.5rem; /* Add space between icon and text */
    }
}

.requestmodalheader,
.submitrequest{
    background: linear-gradient(135deg, var( --primary) 0%, var( --primary-dark) 100%);
}

.request-icon-color,
.totalamount-color{
    color: var(--primary);
}

