/* Main styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #2c2c2c;
    color: #cccccc;
    margin: 0;
    padding: 0;
    padding-bottom: 150px; /* Add padding to the bottom of the body */
}

.header {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 10px;
}

.search-title {
    font-size: 1.5em;
    margin: 0;
    padding: 0;
    font-weight: 500;
    letter-spacing: 1px;
    color: #e65c00;
    font-family: system-ui;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

h1 {
    text-align: center;
    color: #cccccc;
    font-size: 2.5em;
    margin-bottom: 30px;
}

/* Form and fieldset styling */
form {
    margin-top: 20px;
}

fieldset {
    border: none;
    padding: 10px;
    margin: 0 0 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

legend {
    padding: 0 5px;
    font-weight: bold;
    color: #e65c00;
}

label {
    display: block;
    margin: 15px 0 5px;
    color: #cccccc;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #444;
    color: #cccccc;
}

input[type="checkbox"] {
    margin-top: 5px;
}

.round-trip {
    margin-bottom: 10px;
}

/* Button styling */
button {
    width: 100%;
    padding: 15px;
    background-color: #e65c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #ff6a00;
}

button:active {
    background-color: #b34700;
}

button:disabled {
    background-color: #666666;
    cursor: not-allowed;
}

.loading-indicator {
    text-align: center;
    font-size: 16px;
    color: #e65c00;
}

/* Results container styling */
.results-container {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.offer-block {
      margin-bottom: 30px;
      padding: 20px;
      background-color: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
  }

.segment-stage {
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    color: #f5a623;
}

.offer-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #cccccc;
}

.pricing, .segment-details {
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    border: 1px solid #444;
    border-radius: 4px;
}

.pricing-title, .segment-title {
    font-size: 16px;
    font-weight: bold;
    color: #cccccc;
}

.detail {
    font-size: 14px;
    line-height: 1.4;
    color: #cccccc;
}

.total-price-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    padding: 15px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
}

.price-details {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-width: 400px;
    max-width: 800px;
    margin: 0 auto;
}

.price-item {
    text-align: center;
    font-size: 16px;
    color: #cccccc;
}

.price-item::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: #e65c00;
    margin-bottom: 5px;
}

.price-item.total {
    font-size: 18px;
    font-weight: bold;
}

.price-item.total::before {
    content: attr(data-label);
    display: block;
    font-weight: bold;
    color: #e65c00;
    margin-bottom: 5px;
    font-size: 16px;
}

@media (max-width: 768px) {
    .price-details {
        flex-direction: column;
    }

    .price-item {
        margin: 10px 0;
    }
}

.empty-results {
    text-align: center;
    color: #cccccc;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
}

/* Additional styles from the first CSS */
.departure-date {
    font-size: 16px;
    font-weight: bold;
    color: #cccccc;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-left: 4px solid #e65c00;
    display: inline-block;
    margin: 10px 0;
    border-radius: 4px;
}

.q-suite-badge {
    display: inline-block;
    background-color: #e65c00;
    color: #cccccc;
    border-radius: 3px;
    padding: 2px 8px;
    font-size: 12px;
    margin: 5px 0;
}

.offer-separator {
    height: 2px;
    background-color: #444;
    margin: 20px 0;
}

.pricing {
    display: flex;
    column-gap: 10px;
    margin: 10px 0;
    font-size: 14px;
    cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e65c00;
    border-radius: 3px;
    outline: none;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #e65c00;
}

input[type="checkbox"]:checked::before,
input[type="radio"]:checked::before {
    content: '\2714';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 14px;
}

/* Calendar icon styles */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(48%) sepia(85%) saturate(1990%) hue-rotate(359deg) brightness(100%) contrast(106%);
    cursor: pointer;
}

/* Ensure the radio buttons in the pricing section are styled correctly */
.pricing input[type="radio"] {
    margin-right: 10px;
}

.pricing {
    display: flex;
    align-items: center;
    margin: 10px 0;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #2c2c2c;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.modal h2 {
    color: #e65c00;
    margin-bottom: 20px;
}

.modal input[type="text"],
.modal input[type="email"],
.modal input[type="tel"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #444;
    color: #cccccc;
}

.modal button {
    background-color: #e65c00;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
}

.modal button:hover {
    background-color: #ff6a00;
}

#paymentLinkInput {
    width: calc(100% - 20px);
    margin-bottom: 10px;
}

/* Create Payment Link button */
#createPaymentLinkBtn {
    display: none;
    margin-top: 20px;
    background-color: #4CAF50;
    width: 50%;
}

#createPaymentLinkBtn:hover {
    background-color: #45a049;
}

.modal input[type="email"], .modal input[type="tel"] {
    width: calc(100% - 25px);
}

/* Toggle switch styling */
.toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.toggle-label {
    color: #cccccc;
    margin: 0 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e65c00;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.copy-button {
    margin-right: 10px;
    margin-bottom: 10px;
    width: auto;
    padding: 10px 15px;
}

/* Add these styles */
.flight-type-container {
    margin: 20px 0;
}

.flight-type-switch {
    display: flex;
    background: #444;
    padding: 5px;
    border-radius: 5px;
    gap: 5px;
}

.flight-type-option {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.flight-type-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.flight-type-option span {
    color: #cccccc;
}

.flight-type-option input:checked + span {
    color: #fff;
}

.flight-type-option input:checked {
    background-color: #e65c00;
}

.flight-type-option:has(input:checked) {
    background-color: #e65c00;
}
