/* =========================
   GLOBAL WRAPPER
========================= */
.agx-tr {
  max-width: 980px;
  margin: 0 auto;
}

.agx-tr__title h3 {
  text-align: center;
  margin: 10px 0 15px;
  letter-spacing: .5px;
}

/* =========================
   TABS (DESTINATIONS)
========================= */
.agx-tr__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 14px;
}

.agx-tr__tab {
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 14px;
  border-radius: 18px;
  cursor: pointer;
  font-size: 13px;
  transition: all .2s ease;
}

.agx-tr__tab:hover {
  border-color: #fab834;
}

.agx-tr__tab.is-active {
  border-color: #fab834;
  background: #fab834;
  color: #fff;
}

/* =========================
   BLOCKS (ARRIVÉE / DÉPART)
========================= */
.agx-tr__block {
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  margin: 12px 0;
}

.agx-tr__blockHeader {
  background: #fab834;
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}

/* =========================
   FORMS GRID
========================= */
.agx-tr__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 12px;
}

.agx-tr__field label {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: #333;
}

.agx-tr__field input,
.agx-tr__field select,
.agx-tr__field textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}

.agx-tr__field--full {
  grid-column: 1 / -1;
  padding: 0 12px 12px;
}

/* =========================
   SWITCHES (CHECKBOX)
========================= */
.agx-tr__switches {
  padding: 10px 14px;
  background: #fff;
}

.agx-tr__switches label {
  font-weight: 600;
  cursor: pointer;
}

/* =========================
   PRICES
========================= */
.agx-tr__priceLine {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid #eee;
  background: #fff;
}

.agx-tr__total {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px;
  font-size: 18px;
  font-weight: 700;
}

/* =========================
   SUBMIT BUTTON
========================= */
.agx-tr__submit {
  width: 100%;
  border: 0;
  padding: 14px;
  background: #fab834;
  color: #fff;
  font-weight: 800;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: background .2s ease;
}

.agx-tr__submit:hover {
  background: #e06f1c;
}

/* =========================
   MESSAGES
========================= */
.agx-tr__msg {
  margin-top: 10px;
  text-align: center;
  font-weight: 700;
}

.agx-tr__msg.is-ok {
  color: #1b8a3a;
}

.agx-tr__msg.is-err {
  color: #c92a2a;
}

/* =========================
   STEPS (HIDDEN BY DEFAULT)
========================= */
.agx-step-transport,
.agx-step-coords {
  display: none;
}
/* =========================
   ARRIVÉE / DÉPART VISIBILITY
========================= */



/* =========================
   RESPONSIVE
========================= */
@media (max-width: 640px) {
  .agx-tr__grid {
    grid-template-columns: 1fr;
  }
}
.agx-tr__header-switch {
  padding: 0;
}

.agx-tr__header-switch label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
}

.agx-tr__header-switch input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #fff;
  cursor: pointer;
}
/* ===== DIRECTION RADIO STYLE ===== */
.agx-direction-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 0;
}

.agx-direction-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.agx-direction-option:hover {
  border-color: #fab834;
  background: #fff7f0;
}

.agx-direction-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #fab834;
  cursor: pointer;
}

.agx-direction-option span {
  font-weight: 600;
  color: #333;
}
