#pop_up_form {
  position: fixed;
  inset: 0;
  z-index: 100;

  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(1rem);

  display: none;
  justify-content: center;
  align-items: center;

  padding: 1rem;
  overflow-y: auto;
}

.trip_modal {
  width: min(100%, 440px);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;

  border-radius: 1.8rem;
  background: #fff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
}

.trip_modal_header {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg,
      var(--second-primary-background-color),
      var(--primary-background-color));
  color: #fff;
}

.trip_modal_badge {
  width: fit-content;
  padding: .4rem .9rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, .18);

  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05rem;
}

.trip_modal_header h2 {
  margin-top: .8rem;
  font-size: clamp(1.15rem, 4vw, 2rem);
  line-height: 1.2;
}

.trip_modal_header p {
  margin-top: .4rem;
  opacity: .95;
}

.trip_modal_close {
  position: absolute;
  top: 1rem;
  right: 1rem;

  width: 2rem;
  aspect-ratio: 1;

  border: none;
  border-radius: 50%;

  cursor: pointer;

  background: rgba(255, 255, 255, .2);
  color: #fff;
}

.trip_form {
  padding: 1.5rem;
}

.trip_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.form_group {
  margin-bottom: 1rem;
}

.form_group label {
  display: block;
  margin-bottom: .4rem;

  font-size: .85rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
}

.form_group input,
.form_group textarea {
  width: 100%;
  padding: .95rem 1rem;

  border: 1px solid #dbe2ea;
  border-radius: .9rem;

  font-size: .95rem;
  outline: none;

  transition: .3s;
}

.form_group input:focus,
.form_group textarea:focus {
  border-color: var(--primary-background-color);
}

.phone_group {
  display: flex;
  gap: .6rem;
}

.phone_group input:first-child {
  width: 70px;
}

.input_icon {
  position: relative;
}

.input_icon i {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--primary-background-color);
}

.quote_btn {
  width: 100%;
  margin-top: .5rem;
  padding: 1rem;

  border: none;
  border-radius: 1rem;

  cursor: pointer;

  background: linear-gradient(135deg,
      var(--second-primary-background-color),
      var(--primary-background-color));

  color: #fff;
  font-size: 1rem;
  font-weight: 600;

  transition: .3s;
}

.quote_btn:hover {
  transform: translateY(-2px);
}

.trip_features {
  margin-top: 1rem;

  display: flex;
  justify-content: center;
  gap: 1.2rem;
  flex-wrap: wrap;

  font-size: .85rem;
  color: #64748b;
}

.trip_features span {
  display: flex;
  align-items: center;
  gap: .4rem;
}

@media (max-width: 768px) {
  .trip_modal_header {
    padding: 1.25rem;
  }

  .trip_form {
    padding: 1.25rem;
  }

  .trip_modal_header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 576px) {
  .trip_grid {
    grid-template-columns: 1fr;
  }

  .trip_modal {
    width: 100%;
    border-radius: 1.25rem;
  }

  .trip_modal_header {
    padding: 1rem;
  }

  .trip_modal_header h2 {
    font-size: 1.5rem;
  }

  .trip_modal_header p {
    font-size: 0.9rem;
  }

  .trip_form {
    padding: 1rem;
  }

  .form_group input,
  .form_group textarea {
    padding: 0.85rem;
    font-size: 0.9rem;
  }

  .quote_btn {
    padding: 0.9rem;
    font-size: 0.95rem;
  }

  .trip_features {
    gap: 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 420px) {
  .trip_modal_header h2 {
    font-size: 1.3rem;
  }

  .trip_modal_badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.75rem;
  }

  .trip_modal_close {
    width: 1.75rem;
  }

  .phone_group {
    gap: 0.4rem;
  }

  .phone_group input:first-child {
    width: 60px;
  }

  .trip_features {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 360px) {
  .trip_modal_header h2 {
    font-size: 1.15rem;
  }

  .trip_form {
    padding: 0.85rem;
  }

  .form_group label {
    font-size: 0.75rem;
  }

  .quote_btn {
    font-size: 0.85rem;
  }
}