/*
Theme Name: madtravel
Author: MAD Marketing
Version: 1.0
*/

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General body */
body {
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* Header & Footer */
header, footer {
  background: #222;
  color: #fff;
  padding: 15px;
  text-align: center;
  width: 100%;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}


/* Custom Styles for Flight Form */
.flights-form {
    background-color: #2e2f33; /* Dark background from the screenshot */
    padding: 20px;
    border-radius: 12px;
    font-family: Arial, sans-serif;
}

.flights-form .form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

/* --- Input Fields --- */
.flights-form input[type="text"],
.flights-form input[type="email"],
.flights-form input[type="date"] {
    flex: 1;
    padding: 12px 15px;
    background-color: #444548;
    color: #fff;
    border: none;
    border-radius: 8px;
}

.flights-form input::placeholder {
    color: #999;
}

/* --- Custom Dropdown Menus --- */
.dropdown {
    position: relative;
    flex: 1;
    cursor: pointer;
}

.dropdown-btn {
    width: 100%;
    padding: 12px 15px;
    background-color: #444548;
    color: #fff;
    border: none;
    border-radius: 8px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-btn::after {
    content: '▾';
    font-size: 1.2em;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    min-width: 250px;
    padding: 15px;
    background-color: #2e2f33;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
}

.dropdown.is-open .dropdown-content {
    display: block;
}

/* --- Radio Buttons and Labels --- */
.dropdown-list {
    display: flex;
    flex-direction: column;
}

.dropdown-list label {
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-list label:hover,
.dropdown-list input[type="radio"]:checked + span {
    background-color: #3b3c40;
}

/* Hide default radio buttons */
.dropdown-list input[type="radio"] {
    display: none;
}

/* --- Passenger Counters --- */
.passenger-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.passenger-counter label {
    color: #fff;
    font-size: 14px;
    flex: 1;
}

.counter-control {
    display: flex;
    align-items: center;
    gap: 5px;
}

.counter-control button {
    background-color: transparent;
    color: #fff;
    border: 1px solid #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.counter-control input[type="number"] {
    width: 40px;
    text-align: center;
    background-color: transparent;
    border: none;
    color: #fff;
    padding: 0;
    -moz-appearance: textfield; /* Hide number input arrows in Firefox */
}

.counter-control input[type="number"]::-webkit-outer-spin-button,
.counter-control input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Hide number input arrows in Chrome, Safari */
    margin: 0;
}

.dropdown-content .btn-done,
.dropdown-content .btn-cancel {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
}

.dropdown-content .btn-done {
    background-color: #ff6600; /* Orange color from the design */
    color: #fff;
}

.dropdown-content .btn-cancel {
    background-color: #444548;
    color: #fff;
}

/* --- Multi-city specific styling --- */
.multi-city-leg .remove-flight-btn {
    background-color: transparent;
    color: #ff6600;
    border: 1px solid #ff6600;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

#add-flight-btn {
    background-color: transparent;
    color: #ff6600;
    border: 1px solid #ff6600;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    width: auto;
}

/* --- Submit Button --- */
.submit-row {
    justify-content: center;
}

.flights-form .wpcf7-submit {
    width: 100%;
    background-color: #ff6600;
    color: #fff;
    font-weight: bold;
    border: none;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .flights-form .form-row {
        flex-direction: column;
        gap: 5px;
    }
}


