.rzq .rzr-card { gap: 0; }

.rzq-section {
  display: grid;
  gap: 14px;
  padding: 0 0 22px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--rzr-line);
}

.rzq-section:last-of-type { margin-bottom: 18px; }

.rzq .rzq-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--rzr-ink);
}

.rzq-section-title > span:first-child {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e3f2ff;
  color: var(--rzr-primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.rzq-req { color: var(--rzr-bad); }

/* select and flatpickr's visible input share the text-input look */
.rzq .rzr-input select,
.rzq .rzr-input input.flatpickr-input[readonly],
.rzq .rzr-input input.form-control {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 16px 0 44px;
  border: 1px solid var(--rzr-line);
  border-radius: 14px;
  background: var(--rzr-soft);
  color: var(--rzr-ink);
  font: inherit;
  font-size: 1rem;
  box-shadow: none;
  cursor: pointer;
}

.rzq .rzr-input select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6b7a89 50%), linear-gradient(135deg, #6b7a89 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.rzq .rzr-input select:focus,
.rzq .rzr-input input.flatpickr-input:focus,
.rzq .rzr-input input.form-control:focus {
  border-color: var(--rzr-primary);
  background-color: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.18);
}

.rzq-row { display: grid; grid-template-columns: minmax(120px, 0.8fr) repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Google's address box in place of the hidden #search_area */
.rzq-place.has-widget > i { z-index: 1; }

.rzq-place gmp-place-autocomplete {
  display: block;
  width: 100%;
  color-scheme: light;
  border: 1px solid var(--rzr-line);
  border-radius: 14px;
  background: var(--rzr-soft);
  overflow: visible;
}

.rzq-place gmp-place-autocomplete:focus-within { border-color: var(--rzr-primary); box-shadow: 0 0 0 3px rgba(0, 145, 255, 0.18); }
.rzr-field.has-error .rzq-place gmp-place-autocomplete { border-color: var(--rzr-bad); }

/* Photo */
.rzq-photo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: center; gap: 14px; }
.rzq-photo[hidden] { display: none; }

.rzq-drop {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0;
  padding: 18px 12px;
  border: 1.5px dashed #b8d0e6;
  border-radius: 16px;
  background: var(--rzr-soft);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rzq-drop:hover, .rzq-drop:focus-within { border-color: var(--rzr-primary); background: #eef7ff; }
.rzq-drop i { font-size: 1.5rem; color: var(--rzr-primary); }
.rzq-drop strong { font-size: 0.95rem; color: var(--rzr-ink); }
.rzq-drop span { font-size: 0.78rem; color: var(--rzr-muted); }

.rzq-or { display: grid; place-items: center; }
.rzq-or span { padding: 4px 8px; border-radius: 999px; background: #eef2f6; color: var(--rzr-muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

.rzq-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--rzr-line);
  border-radius: 16px;
  background: var(--rzr-soft);
}

.rzq-preview[hidden] { display: none; }
.rzq-preview img { width: 96px; height: 96px; border-radius: 12px; background: #fff; object-fit: cover; }
.rzq .rzq-preview-name { margin-bottom: 6px !important; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; max-width: 320px; }

.rzq-captcha { display: flex; justify-content: flex-start; }

.rzq-tip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff8e6;
  color: #7a5200;
  font-size: 0.88rem;
  line-height: 1.45;
}

.rzq-tip i { margin-top: 2px; color: #e0940f; }

@media (max-width: 860px) {
  .rzq-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rzq-row > .rzr-field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .rzq-row { grid-template-columns: minmax(0, 1fr); }
  .rzq-photo { grid-template-columns: minmax(0, 1fr); }
  .rzq-or { justify-self: stretch; }
}
