/* query.css
 * Regles CSS applicables a la query
 */

.has-feedback {
	position: relative;
}

.card {
	margin-bottom: 10px;
}

.btn-primary {
	color: #ffffff;
	background-color: #1668E3;
	border-color: #1668E3;
	border-radius: 3rem;
	height:36px;
}

.btn-primary:hover {
	background-color: #0E3672;
	border-color: #adadad;
	/*color: #1668E3;*/
}

.btn-secondary {
	color: #333;
	background-color: #fff;
	border-color: #ccc;
}
a:hover, a:visited, a:link, a:active{
	text-decoration: none  !important;
}
.btn-secondary:hover {
	background-color: #e6e6e6;
	border-color: #adadad;
}

.liste-de-checkbox .form-check {
	margin-bottom: .5rem;
}

.bg-primary-exa {
	background-color: #EFF3F7;
}
.text-primary-exa {
	color: #191E3B;
}
/* styles pour que les select2 matchent les autres select */
/* le bloc calc a ete copie des styles pour .form-control de bootstrap */
span.select2.select2-container .select2-selection {
	height: calc(1.5em + .75rem + 2px); 
}
span.select2.select2-container .select2-selection__rendered {
	line-height: calc(1.5em + .75rem + 2px);
}
span.select2.select2-container .select2-selection__arrow {
	height: calc(1.5em + .75rem + 2px);
}
span.select2.select2-container {
	/* necessaire pour que les select2 initialises pendant qu'ils sont hidden soient de la bonne taille */
	width: 100% !important;
}

/* affichage des options autocomplete pour les champs texte de gate/dest a la query */
#ajax_autocomplete{
	position:absolute;              /* Never change this one */
	overflow:auto;                  /* Scrolling features */
	border: 1px solid #CCCCCC;      /* border */
	background-color: #EEF0EF;      /* background color */
	z-index: 5; /* pour eviter d'afficher en-dessous des pitons de calendrier */
}
  
#ajax_autocomplete div{
	margin: 1px;
	padding: 2px;
	cursor: pointer;
}

#ajax_autocomplete .optionDiv{
	color: #000000;
}
 
#ajax_autocomplete .optionDivSelected{
	background-color: #5198e5;
	color: #ffffff;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-right: 20px;
    padding-bottom: 15px;
    padding-left: 0px;
    margin-left: -32px;
    margin-right: -20px;
}

header .logo svg {
    height: 28px; /* Adjust height as needed */
}

header .cta .cta-button {
    background-color: #FDDB32; /* Yellow color from the logo */
    color: #191E3B; /* Dark blue color from the logo */
    padding: 10px 20px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.header-line {
	width: 100%;
    height: 1px;
    background-color: #ccc; /* Grey color */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Small shadow */
}

/* Footer Styles */
footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ccc; /* Grey line at the top of the footer */
    font-size: 14px; /* Smaller font size */
    color: #333; /* Dark grey text */
}

.footer-logo img {
    height: 40px; /* Adjust logo height as needed */
    margin-bottom: 20px; /* Space below the logo */
	position: relative;
    width: 150px;
    float:left;
    margin-top:16px;
    cursor: pointer;
}

.footer-line {
    margin: 10px; /* Spacing between lines */
    color: #191E3B; /* Dark grey text */
}
.footer-line-policies {
    display: flex; /* Make the container a flexbox */
    align-items: center; /* Align items vertically in the center */
    gap: 20px; /* Add space between flex items */
    justify-content: space-between; /* Space out items */
    margin-top: 10px; /* Spacing between lines */
    margin-left: -20px;
    padding-bottom: 20px;
    color: #191E3B; /* Dark grey text */
    text-align: left;
}

.footer-line a {
    color: #1668E3; /* Blue link color */
    text-decoration: none; /* Remove underline */
}

.footer-line a:hover {
    text-decoration: underline; /* Add underline on hover */
}

.footer-feedback {
    margin-left: auto; /* Push the feedback button to the right */
}
.btn-primary-feedback{
    font-weight: 600;
    color: #1668E3;
    background-color: #ffffff;
    border-color: #cecece;
    border-radius: 3rem;
    height:36px;
    white-space: nowrap;
}

.btn-primary-feedback:hover {
	background-color: #1668E3;
	border-color: #adadad;
	color: #ffffff;
}

.footer-feedback .feedback-button {
    display: inline-block;
    margin-top: 20px; /* Space above the button */
    padding: 10px 20px;
    background-color: #ffffff; /* Blue button background */
    color: #1668E3; /* White text */
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.footer-feedback .feedback-button:hover {
    background-color: #005fa3; /* Darker blue on hover */
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: grid;
    grid-template-rows: 1fr auto; /* Main content takes up available space, footer takes auto height */
    min-height: 100vh; /* Ensure the body takes at least the full viewport height */
}

.container {
    display: grid;
    grid-template-rows: 1fr auto; /* Main content takes up available space, footer takes auto height */
}

.hidden-radio {
    display: none !important;
}
.hidden-radio + label {
    display: none !important;
}

/* Add this mobile-specific CSS at the end of your existing CSS */
@media (max-width: 480px) {
    .container footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 16px;
    }

    footer {
        font-size: 0.7rem;
    }

    /* Logo centering */
    .footer-logo {
        text-align: left;
        width: 100%;
    }
    .footer-logo img {
        float: none;
        margin: 0 auto 16px;
    }

    /* Hide header line on mobile */
    .header-line {
        display: none;
    }

    /* First Expedia line */
    .footer-line:first-child {
        display: none;
    }

    /* Policies section */
    .footer-line-policies {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .footer-line-policies > span {
        margin-bottom: 8px;
    }
    .footer-line-policies a:not([href*="ContactUs"]) {
        display: inline;
        white-space: nowrap;
    }
    .footer-line-policies a[href*="ContactUs"] {
        display: block;
        margin: 8px 0 16px;
    }
    .footer-line-policies a[style*="color:grey"] {
        display: inline;
        margin: 0 4px;
    }

    /* Feedback button */
    .footer-feedback {
        margin: 16px 0;
        width: 100%;
        text-align: center;
    }
    .btn-primary-feedback {
        margin: 0 auto;
    }

    /* Copyright line */
    .footer-line:last-child {
        margin-top: 8px;
        text-align: center;
        font-size: 12px;
    }
    body {
        justify-content:center;
    }
}

/* Header styles */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    background-color: white;
    position: relative;
    z-index: 100;
}

/* Hamburger button styles */
.hamburger-btn {
    margin-right: 5px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: block;
    z-index: 101;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #191E3B;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile menu styles */
.mobile-menu-overlay {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    z-index: 99;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    border-radius: 5px;
    width: max-content;
    color: black;
}

.mobile-menu-content {
    padding: 20px;
    width: 100vw;
}

/* Active states */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-menu-overlay.active {
    display: block;
    
}

.mobile-customer-service {
    padding: 20px;
    text-align: left;
    font-weight: 400;
    font-size: 12px;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .mobile-menu-container {
        display: none;
    } 
}
