/* Page background */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Gradient border wrapper */
.border-container {
    background: linear-gradient(135deg, #2EAAFA 0%, #1F2F98 100%);
    padding: 5px;
    border-radius: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Inner white card */
.card {
    background: #ffffff;
    border-radius: 37px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
    position: relative;
}

h1, h3 {
    margin: 0 0 1rem;
    font-weight: 600;
    color: #333;
}


#stepIndicator {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
input[type="time"] {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #fff;
    padding: 0.5rem;
    font-size: 1rem;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #555;
}

/* Toggle switch styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 0.5rem;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #667eea;
}

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

.tooltip {
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #667eea;
}

/* CTA buttons */
button#nextBtn, button#finishBtn {
    width: 100%;
    padding: 0.75rem;
    margin-top: 1rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #2EAAFA 0%, #1F2F98 100%);
    box-shadow: 0 5px 15px rgba(31, 47, 152, 0.3);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

button#nextBtn:hover, button#finishBtn:hover {
    box-shadow: 0 7px 20px rgba(31, 47, 152, 0.4);
}

/* Show Breakdown button fiery red gradient */
button#finishBtn {
    width: 100%;
    padding: 0.85rem;
    margin-top: 1.5rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, #ff416c 0%, #ff4b2b 100%);
    box-shadow: 0 6px 18px rgba(255, 75, 43, 0.6);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

button#finishBtn:hover {
    box-shadow: 0 8px 24px rgba(255, 75, 43, 0.8), 0 0 8px rgba(255, 75, 43, 0.6);
    transform: translateY(-2px);
}

#backBtn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: transparent;
    color: #333;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

#result {
    margin-top: 1rem;
    font-weight: bold;
    text-align: center;
    color: #333;
}

/* Modal overlay for tooltip */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-container {
    background: #fff;
    border-radius: 30px;
    padding: 2rem;
    max-width: 300px;
    text-align: left;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.modal-container h4 {
    margin-top: 0;
    color: #333;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.2rem;
}
select {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    appearance: none;
    background-image: url('data:image/svg+xml,<svg ... >');
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.roundtrip-icon {
    display: inline-block;
    width: 100px;
    height: 50px;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    /* default/fallback icon */
    background-image: url("https://cdn.jsdelivr.net/gh/AE24601/email-assets@master/ROUNDTRIP-ICON-SMALL.png");
}

/* American */
.company-american .roundtrip-icon,
.company-american-charterlines .roundtrip-icon {
    background-image: url("https://cdn.jsdelivr.net/gh/AE24601/email-assets@master/ROUNDTRIP-ICON-SMALL.png");
}
