.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 0.2rem solid #fff;
  box-shadow: var(--h5-shadow-btn);
  font-weight: 700;
  text-align: center;
}

.btn-pill {
  border-radius: 999px;
}

.btn-red {
  background: linear-gradient(104deg, #f86864 0%, #ff4d47 100%);
  color: #fff;
}

.btn-yellow {
  background: linear-gradient(166deg, #ffe478 9%, #ffd115 61%);
  color: #333;
}

.btn-green {
  background: linear-gradient(104deg, #19ef6f 0%, #00ca85 100%);
  color: #fff;
}

.btn-md {
  width: auto;
  max-width: 100%;
  height: 4.8rem;
  padding: 0 3.6rem;
  font-size: 1.4rem;
  white-space: nowrap;
}

.btn-sm {
  height: 2.8rem;
  padding: 0 1.6rem;
  font-size: 1rem;
}

.btn-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 14.6rem;
  height: 3.4rem;
  border: 0.2rem solid #fff;
  border-radius: 0.6rem;
  background: var(--h5-tab-off);
  color: #333;
  font-size: 1.2rem;
}

.btn-tab img {
  width: 1.2rem;
  height: 1.2rem;
  object-fit: contain;
}

.btn-tab .iconfont {
  font-size: 1.4rem;
  line-height: 1;
}

.btn-tab:not(.is-on) img[src$=".png"] {
  filter: brightness(0);
  opacity: 0.7;
}

.btn-tab.is-on img[src$=".png"] {
  filter: brightness(0) invert(1);
}

.btn-tab.is-on {
  background: linear-gradient(104deg, #f86864 0%, #ff4d47 100%);
  color: #fff;
  box-shadow: 0.2rem 0.3rem 0 rgba(0, 0, 0, 0.4);
  font-weight: 700;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.field label {
  color: var(--h5-text);
  font-size: 1.4rem;
  line-height: 2.4rem;
}

.field select,
.field input {
  width: 100%;
  height: 3.6rem;
  padding: 0 0.8rem;
  border: 0.1rem solid var(--h5-border);
  border-radius: 0.4rem;
  background: #fff;
  color: var(--h5-text);
}

.field select {
  background-image: url("../assets/icons/chevron.svg");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.4rem;
  padding-right: 2.8rem;
}

.field select:invalid,
.field input::placeholder {
  color: var(--h5-placeholder);
}

.vehicle-search-hint {
  margin: 0.4rem 0 0;
  color: #888;
  font-size: 1.1rem;
  line-height: 1.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: #333;
  font-size: 1rem;
  line-height: 1.4rem;
}

.tag.is-yellow { background: var(--h5-tag-yellow); }
.tag.is-green { background: var(--h5-tag-green); }
.tag.is-blue { background: var(--h5-tag-blue); }
.tag.is-pink { background: var(--h5-tag-pink); }

.sec-title {
  color: var(--h5-text);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.8rem;
  text-align: center;
}

.sec-lead {
  color: var(--h5-muted);
  font-size: 1.2rem;
  line-height: 2.2rem;
  text-align: center;
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  flex-shrink: 0;
  border-radius: 50%;
}

.btn-arrow .iconfont {
  font-size: 1.2rem;
  line-height: 1;
}

.btn-yellow .btn-arrow,
.rp-btn-yellow .btn-arrow {
  background: #111;
  color: #fff;
}

.btn-green .btn-arrow,
.rp-btn-green .btn-arrow {
  background: #fff;
  color: #00c300;
}

/* —— Site dialog (replaces native alert/confirm) —— */
body.h5-dialog-open {
  overflow: hidden;
}

.h5-dialog {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.4rem;
  background: rgba(17, 17, 17, 0.45);
  animation: h5-dialog-fade 0.18s ease;
}

.h5-dialog-card {
  width: min(32rem, 100%);
  padding: 2.4rem 1.8rem 2rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 1.6rem 4rem rgba(0, 0, 0, 0.18);
  animation: h5-dialog-pop 0.2s ease;
}

.h5-dialog-title {
  margin: 0 0 0.8rem;
  color: #111;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 2.4rem;
  text-align: center;
}

.h5-dialog-message {
  margin: 0 0 2rem;
  color: #555;
  font-size: 1.3rem;
  line-height: 2rem;
  text-align: center;
  white-space: pre-wrap;
}

.h5-dialog-actions {
  display: flex;
  gap: 1rem;
}

.h5-dialog-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.h5-dialog-cancel {
  background: #f2f3f5;
  color: #323233;
}

.h5-dialog-ok {
  background: linear-gradient(104deg, #f86864 0%, #ff4d47 100%);
  color: #fff;
}

.h5-dialog-ok.is-danger {
  background: linear-gradient(104deg, #f86864 0%, #ff4d47 100%);
}

@keyframes h5-dialog-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes h5-dialog-pop {
  from { opacity: 0; transform: translateY(1rem) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
