
body {
  background-color: var(--bg); 

}



/* Defining CSS variables for consistent theming throughout the stylesheet */
:root{
    --contact-form-bg: #bcbcbc; /* contact form background color */
    --bg: #F5F5F5; /* general background color */
    --header-bg: #ffffff; /* header background color */
    --hover: #ff6f61; /* hover effect color */
    --border: rgba(0,0,0,0.08); /* border color */
  }

html, body {
  height: 100%;
  margin: 0;
}
header {
  background-color: var(--header-bg);
  display: flex;
  align-items: center;
  justify-content: flex-start; 
  padding: 12px 20px;
  gap: 16px;
  flex-wrap: wrap; /* allow wrapping on very small viewports */
  box-sizing: border-box;
  border-bottom: 1px solid var(--border); 
}


/* The styling for the group of 3 buttons */
.header-button {
  display: inline-block;
  outline: none;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  border-radius: 500px;
  transition-property: background-color,border-color,color,box-shadow,filter;
  transition-duration: .3s;
  border: 1px solid transparent;
  letter-spacing: 2px;
  min-width: 0; /* min width allows buttons to shrink - allowing items to shrink smaller than their content if needed to fit the container */
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
  padding: 10px 14px; 
  color: #616467;
  box-shadow: inset 0 0 0 2px #616467;
  background-color: transparent;
  height: 44px;
  box-sizing: border-box;
}

/* nav buttons */
.main-nav {
  display: flex;
 flex-wrap: wrap;
 align-items: center;
  gap: 10px;
  align-items: center;
}

.nav-buttons {
  display: flex;
  flex-wrap: wrap; 
  gap: 10px; 
}

/* middle group (3 buttons) */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto; 
  gap: clamp(16px, 7vw, 64px); 
  flex: 0 0 auto;
}

/* this is the right group (2 buttons) */
.user-buttons {
  /* margin-left: auto;  */
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
  
}

.logo {
  flex: 0 0 auto;
  margin-right: 0;
  scale: calc(0.9);
}

/* this removes the defualt button style */
.icon-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
/* this is the image inside the button */
.icon-btn img {
  width: auto;
  height: auto;
  display: block;
}
.user-buttons {
  display: flex;
  gap: 10px; 
}

.hero__visual {
  position: relative;
  justify-self: end; /* keeps the visual on the right column */
  align-self: center;
}


.hero__visual img{
  position: relative; 
  width: 100%;
  height: auto;
  max-width: 200px; /* constrain size so it scales down */
  display: block;
  margin: 0;
  padding-right: 150px;

}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.hero-title {
  font-size: 28px;
  /* margin: 0; */
  font-weight: bold;
  line-height: 1.2;
  color: #242424;
  padding: 60px 0 0 0;
  margin: 0;
}

.hero-text  {
    padding-left: 80px;
  padding-bottom: 180px;
 font-size: 16px;
}
.hero-title-highlighted {
  font-size: 60px;
  margin: 0;
  font-weight: bold;
  line-height: 1.2;
  color: #242424;
  padding: 0;
  margin: 0;
}
.hero-highlight {
  color: #FF6F61;
   font-style: italic;
   font-size: 60px;;
 
}

.test {
  display: flex; 
  align-items: center ; 
  gap: 0px;
   align-items: stretch;
    
}


.flight-input-section {
  margin: 0 0 0 270px;
  
  max-width: calc(100% - 540px);
  box-sizing: border-box;
  padding: 45px 28px;
  border-radius: 25px;
  background-color: #ffffff;

}

.search-horizontal-grid {
  display: flex; 
  gap: 20px; 
  /* justify-content: space-between;  */
  flex-wrap: wrap;
  align-items: center; 
}



.input-box {
  display: flex;
  flex-direction: column; 
  gap: 8px; 
  flex: 1 1 calc(16.66% - 20px); 
  min-width: 150px; 
  
}

.input-box div {
  /* font-size: 14px;  */
  font-weight: bold; 
  
}

.flight-input {
   width: auto;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  width: 100%; 
}

.input-title-text {
  font-size:20px;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(167, 167, 167);
}

.input {
  max-width: 200px;
  background-color: #ffffff;
  /* color: #242424; */
  padding: .15rem .5rem;
  min-height: 40px;
  border-radius: 4px;
  outline: none;
  border: none;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: rgb(167, 167, 167);
  font-size: 16px;
  
  /* line-height: 1.15; */
  /* box-shadow: 0px 10px 20px -18px; */
}

.flight-checkbox{
   display: flex;
justify-content: flex-start; 
}

/*--- search button ---*/

.btn {
  transition: all 0.3s ease-in-out;
  font-family: "Dosis", sans-serif;
}

.contact-btn {
  transition: all 0.3s ease-in-out;
  font-family: "Dosis", sans-serif;
}

.button-container {
    margin: 0 0 0 30px;
  display: flex; 
  justify-content: flex-end;
  /* margin: 20px 90px;  */
   align-items: center;
}

.btn {
  width: 150px;
 height: 100%; 
  border-radius: 50px;
  background-image: linear-gradient(135deg, #feb692 0%, #ea5455 100%);
  box-shadow: 0 20px 30px -6px rgba(238, 103, 97, 0.5);
  outline: none;
  cursor: pointer;
  border: none;
  font-size: 24px;
  color: white;
}

.btn:hover {
  transform: translateY(3px);
  box-shadow: none;
}

.btn:active {
  opacity: 0.5;
}

/* input:focus {
  border-bottom: 2px solid #5b5fc7;
  border-radius: 4px 4px 2px 2px;
}

input:hover {
  outline: 1px solid lightgrey;
} */


/*-- About us section --*/
.about-section {
  padding: 20px 90px 20px 90px;
  display: flex;
}


/* Placing the responsive functions to remind me to fill them later*/
@media (max-width: 900px) {
  .test {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .flight-input-section {
    margin: 0 16px;                 
    max-width: calc(100% - 32px);
    padding: 20px;
  }

  .search-horizontal-grid {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }

  .input-box {
    flex: none;
    width: 100%;
    min-width: auto;
  }

  .input,
  .flight-input {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .button-container {
    margin: 0 16px 16px;
    justify-content: center;
  }

  .btn {
    width: 100%;
    height: 56px;
    border-radius: 12px;
  }
}

/* Contact CSS */

.contact_container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: nowrap;
  padding: 2rem 1rem;
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
}

/* Allow swapping order without editing HTML: add class "swap-order" */
.contact_container.swap-order {
  flex-direction: row-reverse;
}

.contact_picture-container {
  flex: 0 0 44%;
  max-width: 44%;
  display: flex;
  justify-content: center;
  align-items: center;
  scale: 0.7;
}

.contact_picture img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 6px;
  transition: transform 300ms ease;
}

.contact-form-container {
  flex: 1 1 52%;
  max-width: 52%;
  min-width: 280px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch; /* Ensures inputs stretch to full width */
}

.form-header {
  font-size: 2em;
  font-weight: 700;
}

.email-input {
  border: none;
  outline: none;
  background: var(--contact-form-bg);
  padding: 20px;
  border-radius: 6px;
  width: 100%;
  font-size: 100%;
}

.message {
  border: none;
  outline: none;
  resize: none;
  background: var(--contact-form-bg);
  padding: 20px;
  border-radius: 6px;
  width: 100%;
  font-size: 100%;
}

.submit {
  border: none;
  outline: none;
  color: var(--contact-btn-text);
  width: 100%;
  padding: 20px;
  background: var(--contact-btn-bg);
  font-size: 100%;
  font-weight: 600;
  border-radius: 6px;
  transition: transform 300ms 0s cubic-bezier(0, 0.23, 0.29, 2.45);
}

.submit:hover {
  cursor: pointer;
  background: var(--contact-btn-bg-hover);
  transform: translateY(-2px);
}

/*about*/

.about-title{
    color: #FF6F61;
   font-style: italic;
   font-size: 30px;;
}

/*footer*/
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--bg);
  color: white;
}

/*hover */
.header-button:hover {
  background-color: var(--hover);
  transform: scale(1.05);
}

@media (max-width: 520px) {
  .hero-text { padding-left: 20px; padding-bottom: 120px; }
  .hero-title-highlighted, .hero-highlight { font-size: 36px; }
}
@media (max-width: 768px) {
  .main-nav {
    flex-direction: column; 
    align-items: center; 
  }
  .nav-buttons {
   flex-direction: column;
   justify-content: center;
  }
}


