:root {
    --secondary-color: #009bf2;
    --primary-color: #00558a;
}

html,
body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    background-color: var(--primary-color);
}

a {
    text-decoration: none !important;
}

.btn-primary {
    background-color: var(--primary-color);
}

.form-container {
    max-width: 900px;
    margin: auto;
}

.flight-card {
    transition: all 0.3s ease;
}

.flight-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

#flight-type-info {
    background: #00558a !important;
    color: #ffffff;
    height: 100%;
}

#flight-type-info p {
    line-height: 1em;
}

ul li {
    list-style-type: none;
}

.airline-logo {
    width: 500px;
    height: 150px;
    object-fit: contain;
    margin-right: 12px;
}

.flight-path {
    position: relative;
}

.path-line {
    margin: 15px 0;
}

.city-name {
    font-weight: 500;
    color: #2c3e50;
}

.airport-name {
    font-size: 0.85em;
    color: #6c757d;
}

.time {
    font-weight: bold;
    color: #2c3e50;
}

.select2-container {
    width: 100% !important;
}

.select2-selection {
    height: 38px !important;
    border: 1px solid #ced4da !important;
}

.select2-selection__rendered {
    line-height: 36px !important;
}

.select2-selection__arrow {
    height: 36px !important;
}

.text-effect {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
}

.btn-style {
    background-color: var(--secondary-color);
    border: 0px;
}

.btn-style:hover {
    background-color: var(--primary-color);
    border: 0px;
}

.path-line hr {
    border-top: 2px solid #dee2e6;
    position: relative;
}

.stops-label,
.nonstop-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 0 10px;
    font-size: 0.85em;
    color: #6c757d;
}

.nonstop-label {
    color: #28a745;
}

/* Collapse button styles */
.btn-link[data-bs-toggle="collapse"] {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 8px 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-link[data-bs-toggle="collapse"]:hover {
    text-decoration: none !important;
}

.btn-link[data-bs-toggle="collapse"]:hover {
    color: var(--secondary-color);
}

.btn-link[data-bs-toggle="collapse"][aria-expanded="true"] {
    color: var(--secondary-color);
}

.btn-link[data-bs-toggle="collapse"]::after {
    content: '▼';
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.btn-link[data-bs-toggle="collapse"][aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.collapse {
    transition: height 0.35s ease;
}

.collapse:not(.show) {
    display: none;
}

.collapsing {
    height: 0;
    overflow: hidden;
    transition: height 0.35s ease;
}

/* Connection details styles */
.connection-segment {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.connection-wait {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 10px;
}

.flight-summary {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.airline-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    margin-right: 12px;
}

.btn-style,
.btn-default {
    background-color: #009bf2 !important;
    border: 0px;
    color: #ffffff;
}

.btn-style:hover,
.btn-default:hover {
    background-color: var(--primary-color) !important;
    border: 0px;
}


.flight-path-line {
    height: 2px;
    background: #dee2e6;
    width: 100px;
    margin: 10px auto;
    position: relative;
}

.flight-path-line:before,
.flight-path-line:after {
    content: '';
    width: 8px;
    height: 8px;
    background: #dee2e6;
    border-radius: 50%;
    position: absolute;
    top: -3px;
}

.flight-path-line:before {
    left: 0;
}

.flight-path-line:after {
    right: 0;
}

.alert {
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert ul {
    padding-left: 1.2rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}


/* body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
} */

.booking-header {
    display: flex;
    justify-content: space-between;
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
}

.booking-ref,
.check-app {
    margin: 0 20px;
}

.traveler-info,
.agency-info,
.service-unavailable,
.trip-details {
    margin: 20px;
    padding: 10px;
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2,
h3 {
    color: var(--primary-color);
}

.trip-day {
    margin-top: 20px;
}

.flight-info {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: #e9f1f7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}


.booking-ref,
.check-app {
    margin: 0 20px;
}


h2,
h3 {
    color: var(--primary-color);
}

.trip-day {
    margin-top: 20px;
}

.flight-info {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    background-color: #e9f1f7;
}


.booking-footer {
    font-size: 12px;
    color: #7f8c8d;
    text-align: center;
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

    .flight-group {
        border-bottom: 1px solid #eee;
        padding-bottom: 15px;
        margin-bottom: 15px;
    }

    .swap-icon {
        cursor: pointer;
        font-size: 1.2rem;
        line-height: 38px;
        text-align: center;
        display: inline-block;
        width: 100%;
    }

    .flight-row {
        justify-content: space-between;
    }

    .flight-row>div {
        min-width: 150px;
    }

    .search-results {
        margin-top: 30px;
    }

    .card {
        border-radius: 12px;
        /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); */
    }

    .form-control:focus {
        box-shadow: none;
        border-color: #6c63ff;
    }


    /* Payment modal styles */

    .success-icon {
        font-size: 4rem;
        color: #28a745;
        animation: popIn 0.6s ease-out forwards;
      }
  
      @keyframes popIn {
        0% { transform: scale(0); opacity: 0; }
        70% { transform: scale(1.2); opacity: 1; }
        100% { transform: scale(1); }
      }
  
      .confetti {
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: hidden;
      }
  
      .confetti i {
        position: absolute;
        top: 0;
        font-size: 1.2rem;
        opacity: 0.9;
        animation: fall 3s linear infinite;
      }
  
      @keyframes fall {
        0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
        100% { transform: translateY(500px) rotate(360deg); opacity: 0; }
      }
  
      .modal-content {
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        position: relative;
        overflow: hidden;
      }
  
      .modal-header {
        border-bottom: none;
      }
  
      .celebration-text {
        font-size: 1.1rem;
        color: #555;
      }

/* 
.ticket {
    border: 2px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    background-color: #f9f9f9;
}
.ticket-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.company-logo {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}
.ticket-ref {
    font-size: 14px;
    color: #7f8c8d;
}
.ticket-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.ticket-section {
    margin-bottom: 15px;
}
.ticket-section h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #2c3e50;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.qr-code {
    text-align: center;
    margin: 20px 0;
}
.barcode {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    letter-spacing: 2px;
    font-size: 16px;
    background: #f1f1f1;
    padding: 10px;
    margin-top: 10px;
}
.print-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 20px;
}
.print-button:hover {
    background-color: #2980b9;
}

@media print {
    .print-button {
        display: none;
    }
    body {
        padding: 0;
        margin: 0;
    }
    .ticket {
        border: none;
        padding: 0;
    }
    .no-print {
        display: none;
    }
} */


/* Progress Indicator */
.step-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50px;
    gap: 40px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 100%;
    height: 4px;
    width: 40px;
    background-color: var(--primary-color);
    z-index: 0;
}

.step.active:not(:last-child)::after {
    background-color: #ccc;
}

.circle {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    line-height: 40px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.step.completed .circle {
    background-color: var(--primary-color);
}

.step.active .circle {
    border: 2px solid var(--primary-color);
    background-color: #fff;
    color: var(--primary-color);
}

.step-title {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
}


/* Bookind details */
.alert {
    border-radius: 8px;
    margin-bottom: 2rem;
}

.alert ul {
    padding-left: 1.2rem;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.flight-path-container {
    position: relative;
}

.flight-path-lines {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: -1;
}

.flight-line {
    border-top: 2px dashed #dee2e6;
    margin: 0;
    width: 45%;
}

.flight-line:first-child {
    position: absolute;
    left: 0;
}

.flight-line:last-child {
    position: absolute;
    right: 0;
}

.connection-dot {
    width: 12px;
    height: 12px;
    background-color: #ffc107;
    border-radius: 50%;
    margin: 0 auto 10px;
}

.flight-point,
.flight-connection {
    background-color: #fff;
    padding: 10px;
    z-index: 1;
}

.fare-rules .rule-item {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.fare-rules .rule-item:last-child {
    border-bottom: none;
}

.fare-rules .fas {
    color: #6c757d;
}

.fare-rules ul li {
    margin-bottom: 5px;
    padding-left: 8px;
}

.passenger-section {
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}


/* TICKET PAGE */

    .trip-header {
        background-color: #002060;
        color: white;
        padding: 10px;
    }

    .label-box {
        font-weight: bold;
    }

    .info-card {
        border: 1px solid #ccc;
        padding: 15px;
        margin-bottom: 15px;
    }

    .highlight-box {
        border: 1px solid rgba(160, 160, 160, 0.39);
        padding: 10px;
        margin-top: 10px;
    }

    .small-label {
        font-size: 0.9rem;
    }


/* 404 STYLES */

.page-404 {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.page-404 .container {
    max-width: 600px;
    padding: 20px;
}

.page-404 .image {
    margin-bottom: 20px;
}

.page-404 .image img {
    max-width: 120px;
}

.page-404 h1 {
    font-size: 96px;
    margin: 0;
    font-weight: bold;
}

.page-404 h2 {
    margin: 10px 0;
    font-size: 22px;
    color: #555;
}

.page-404 p {
    font-size: 16px;
    color: #777;
}

.page-404 a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.page-404 a:hover {
    text-decoration: underline;
}

.alert {
    display: none !important;
}

#toastContainer {
    z-index: 1055;
}

.toast {
    min-width: 320px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.show {
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* FARE FAMILY MODAL AND CARD STYLES */
.fare-selection-container {
    padding: 1rem 0;
}

.fare-card-modern {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease;
}

.fare-card-modern:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.fare-card-header {
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

.fare-price-large {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.fare-price-subtitle {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
}

.fare-card-body {
    padding: 1.25rem;
    flex-grow: 1;
}

.fare-type-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.fare-type-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.25rem;
}

.fare-cabin {
    font-size: 0.875rem;
    color: #666;
}

.fare-details-section {
    margin-bottom: 1.5rem;
}

.fare-detail-item {
    margin-bottom: 1.25rem;
}

.fare-detail-item:last-child {
    margin-bottom: 0;
}

.fare-detail-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.fare-detail-content {
    font-size: 0.875rem;
    color: #333;
}

.fare-detail-content > div {
    margin-bottom: 0.375rem;
}

.fare-detail-content > div:last-child {
    margin-bottom: 0;
}

.fare-detail-content i {
    margin-right: 0.5rem;
    font-size: 0.875rem;
}

.price-drop-protection {
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.price-drop-protection .bi-info-circle {
    color: #6c757d;
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.fare-card-footer {
    padding: 1.25rem;
    border-top: 1px solid #f0f0f0;
}

.fare-select-btn {
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    background: #0066cc;
    border: none;
    transition: background-color 0.2s ease;
}

.fare-select-btn:hover {
    background: #0052a3;
}

@media (max-width: 768px) {
    .fare-card-modern {
        margin-bottom: 1rem;
    }
}