body {
  font-family: "Roboto", Arial, sans-serif;
  background-color: #f5f5f5;
  color: #202124;
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.container {
  background-color: #ffffff;
  max-width: 700px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 3rem;
}

h1 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  font-size: 1rem;
  color: #5f6368;
  margin-bottom: 1.5rem;
}

form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}

form>label,
form>fieldset,
form>div,
form>button,
form>#result {
  grid-column: span 2;
}

@media (min-width: 600px) {

  #manualInputs,
  #flight {
    grid-column: auto;
  }

  #manualInputs input,
  #flight input {
    width: 100%;
  }
}

label {
  font-size: 1rem;
  font-weight: 500;
}

input[type="time"],
input[type="number"],
select,
input[type="range"] {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background-color: #fff;
}

input:focus,
select:focus,
input[type="range"]:focus {
  outline: none;
  border-color: #1a73e8;
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

input[type="radio"],
input[type="checkbox"] {
  margin-right: 0.5rem;
  transform: scale(1.1);
}

fieldset {
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 1rem;
}

legend {
  font-weight: 600;
  font-size: 1rem;
}

button {
  background-color: #1a73e8;
  color: #fff;
  border: none;
  padding: 1rem;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
}

button:hover {
  background-color: #1558b0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#result {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background-color: #e8f0fe;
  border: 1px solid #c3d3ff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  display: none;
}

#manualInputs {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .container {
    padding: 2rem;
    max-width: 90%;
  }

  form {
    display: flex;
    flex-direction: column;
  }

  form>label,
  form>fieldset,
  form>div,
  form>button,
  form>#result {
    grid-column: span 2;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.half-width {
  grid-column: span 1;
}

.full-width {
  grid-column: span 2;
}

form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.half-width {
  grid-column: span 1;
}

.full-width {
  grid-column: span 2;
}

@media (max-width: 768px) {
  form {
    grid-template-columns: 1fr;
    gap: 1rem 0;
  }

  .half-width,
  .full-width {
    grid-column: span 1;
  }

  input[type="time"],
  input[type="number"],
  select,
  input[type="range"],
  button {
    font-size: 1rem;
    padding: 0.75rem;
  }

  .container {
    padding: 2rem;
    max-width: 95%;
  }
}

@media (max-width: 600px) {
  body {
    padding: 20px 10px;
  }

  .container {
    padding: 1.5rem;
    max-width: 100%;
  }

  form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .form-group,
  .half-width,
  .full-width {
    width: 100%;
    grid-column: span 1;
  }

  input[type="time"],
  input[type="number"],
  select,
  input[type="range"],
  button {
    font-size: 0.95rem;
    padding: 0.65rem;
  }

  h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  p {
    font-size: 0.9rem;
    text-align: center;
  }

  #result {
    font-size: 0.95rem;
    padding: 1rem;
  }
}


label input[type="radio"],
label input[type="checkbox"] {
  margin-right: 0.5rem;
  margin-bottom: 0.3rem;
}

fieldset label {
  margin-bottom: 0.3rem;
}

#result {
  background-color: #e8f0fe;
  transition: background-color 1s ease;
}

#result.flash {
  background-color: #ffd54f !important;
}

#flightGallery {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  display: none;
}

.gallery-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
}

.gallery-img.active {
  opacity: 1;
  transform: scale(1.05);
}

#loadingText {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.5px;
}
.accordion {
  margin-top: 1.5rem;
  border: 1px solid #dadce0;
  border-radius: 6px;
  overflow: hidden;
}

.accordion-header {
  background-color: #f1f3f4;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background-color: #e0e3e7;
}

.accordion-content {
  display: none;
  background-color: #fff;
  padding: 1rem;
  line-height: 1.5;
}

.accordion-header.active {
  background-color: #dbe3ff;
}
