/*
 * Anfrageformular — erscheint im "Keine Produkte verfügbar"-Zustand der
 * Verfügbarkeitsabfrage. dein-stadtwerk CI.
 */

.inq {
  grid-column: 1 / -1;            /* volle Breite im #catalog-Grid */
  margin-top: 18px;
  border: 1px solid var(--line, #e8eef3);
  border-radius: var(--radius, 18px);
  background: var(--soft, #f6faf8);
  padding: clamp(22px, 3vw, 32px);
}

.inq-title {
  margin: 0 0 6px;
  color: var(--navy, #061b3a);
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.inq-sub { margin: 0 0 22px; color: var(--muted, #667085); font-weight: 500; }
.inq-sub strong { color: var(--navy, #061b3a); font-weight: 700; }

.inq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.inq-field { display: flex; flex-direction: column; gap: 6px; }
.inq-field.col-3 { grid-column: 1 / -1; }

.inq-label {
  font-size: 13px; font-weight: 800; color: var(--navy, #061b3a);
}
.inq-label .req { color: #ca3f5f; }

.inq-input, .inq-textarea {
  border: 1px solid #d9e2ea;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: var(--text, #10213f);
  padding: 12px 14px;
  width: 100%;
}
.inq-input:focus, .inq-textarea:focus {
  outline: 0;
  border-color: var(--green, #008b63);
  box-shadow: 0 0 0 3px rgba(0,139,99,.12);
}
.inq-textarea { resize: vertical; min-height: 76px; }

/* Checkbox-Gruppen */
.inq-fieldset { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; }
.inq-fieldset legend { font-size: 13px; font-weight: 800; color: var(--navy, #061b3a); padding: 0 0 8px; }
.inq-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.inq-check {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #d9e2ea; border-radius: 999px;
  background: #fff; padding: 8px 14px; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--text, #10213f);
  transition: border-color .15s ease, background .15s ease;
}
.inq-check:hover { border-color: var(--green, #008b63); }
.inq-check input { accent-color: var(--green, #008b63); width: 16px; height: 16px; }
.inq-check:has(input:checked) { border-color: var(--green, #008b63); background: #eef7f2; }

/* Einwilligung */
.inq-consent {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: #4a586d; line-height: 1.5;
}
.inq-consent input { margin-top: 2px; accent-color: var(--green, #008b63); width: 16px; height: 16px; flex: none; }

.inq-error {
  grid-column: 1 / -1;
  color: #ca3f5f; font-weight: 700; font-size: 14px;
  margin: 0;
}
.inq-error[hidden] { display: none; }

.inq-actions { grid-column: 1 / -1; }
.inq-submit {
  border: 0; border-radius: 8px;
  background: var(--green, #008b63); color: #fff;
  font: inherit; font-weight: 800; padding: 14px 26px; cursor: pointer;
  transition: background .15s ease;
}
.inq-submit:hover { background: var(--green-dark, #006b56); }
.inq-submit:disabled { opacity: .6; cursor: default; }

/* Dankeschön */
.inq-success { text-align: left; }
.inq-success-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--green, #008b63); color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 900;
  margin-bottom: 14px;
}
.inq-success h3 { margin: 0 0 8px; color: var(--navy, #061b3a); font-size: 1.4rem; }
.inq-success p { margin: 0 0 16px; color: #4a586d; line-height: 1.6; }
.inq-summary {
  list-style: none; margin: 0; padding: 16px 18px;
  background: #fff; border: 1px solid var(--line, #e8eef3); border-radius: 12px;
}
.inq-summary li { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line, #e8eef3); font-size: 14px; }
.inq-summary li:last-child { border-bottom: 0; }
.inq-summary .k { flex: 0 0 150px; color: var(--muted, #667085); font-weight: 700; }
.inq-summary .v { color: var(--navy, #061b3a); font-weight: 600; }

@media (max-width: 760px) {
  .inq-grid { grid-template-columns: 1fr; }
}
