/* Public "Formularz zapytania" — see inc/inquiry-form.php →
   hz_inquiry_render_form(). Only enqueued on the page assigned the
   "Formularz zapytania" page template (see page-templates/formularz-zapytania.php). */

.inquiry-wrap {
	max-width: 1080px;
	margin: 0 auto;
}

.inquiry-notice {
	border-radius: var(--radius);
	padding: 18px 22px;
	margin: 0 0 28px 0;
	font-size: 0.96rem;
}
.inquiry-notice-success {
	background: var(--bg-light-2);
	color: var(--fg-on-light);
	border: 1px solid var(--border-light);
}
.inquiry-notice-error {
	background: #fdf1ec;
	color: #8a3a1f;
	border: 1px solid #f0c9b8;
}
.inquiry-notice-error p { margin: 0 0 8px 0; font-weight: 600; }
.inquiry-notice-error ul { margin: 0; padding-left: 20px; }
.inquiry-notice-error li { margin-bottom: 4px; }

/* Tab buttons — same pill language as the product subnav, just centered on
   its own row above the form instead of sticky under the header. */
.inquiry-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 28px 0;
}
.inquiry-tab-btn {
	font-family: inherit;
	font-weight: 600;
	font-size: 0.96rem;
	padding: 14px 22px;
	border-radius: 10px;
	border: 1px solid var(--border-light);
	background: var(--bg-light-2);
	color: var(--fg-on-light-muted);
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.inquiry-tab-btn:hover { border-color: var(--sage); color: var(--fg-on-light); }
.inquiry-tab-btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.inquiry-panel {
	background: var(--white);
	border: 1px solid var(--border-light);
	border-radius: var(--radius);
	padding: clamp(20px, 4vw, 40px);
	box-shadow: 0 10px 30px rgba(51, 81, 80, 0.06);
}
.inquiry-panel[hidden] { display: none; }

.inquiry-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0 40px;
	align-items: start;
}
.inquiry-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
/* a column with only 1-2 fields (e.g. the right column's short groups)
   shouldn't visually stretch to match a much taller neighbour */
.inquiry-col + .inquiry-col { border-left: 1px solid var(--border-light); padding-left: 40px; }

.inquiry-field { display: flex; flex-direction: column; gap: 6px; }
.inquiry-field label,
.inquiry-choice-legend {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--fg-on-light);
	margin: 0;
}
.inquiry-required { color: var(--accent-hover); }

.inquiry-field input[type="text"],
.inquiry-field input[type="email"],
.inquiry-field input[type="tel"],
.inquiry-field input[type="file"],
.inquiry-field textarea {
	width: 100%;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--fg-on-light);
	background: var(--bg-light-2);
	border: 1px solid var(--border-light);
	border-radius: 10px;
	padding: 11px 14px;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.inquiry-field input[type="text"]:focus,
.inquiry-field input[type="email"]:focus,
.inquiry-field input[type="tel"]:focus,
.inquiry-field textarea:focus {
	outline: none;
	border-color: var(--sage);
	background: var(--white);
}
.inquiry-field textarea { resize: vertical; }
.inquiry-field-hint { margin: 0; font-size: 0.8rem; color: var(--fg-on-light-muted); }

.inquiry-pair { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.inquiry-pair input { flex: 1; min-width: 70px; }
.inquiry-pair-label,
.inquiry-choice-extra + .inquiry-pair-label,
label.inquiry-choice-option .inquiry-pair-label {
	font-size: 0.82rem;
	color: var(--fg-on-light-muted);
	white-space: nowrap;
}

.inquiry-choice-group { display: flex; flex-direction: column; gap: 10px; }
.inquiry-choice-option {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 0.94rem;
	color: var(--fg-on-light);
	cursor: pointer;
}
.inquiry-choice-option input[type="radio"] {
	width: 18px;
	height: 18px;
	accent-color: var(--ink);
	flex: none;
}
.inquiry-choice-extra {
	/* flex-basis (not width) sizes this correctly: it's a flex item inside
	   .inquiry-choice-option (display:flex), and for a flex item the
	   flex-basis value wins over width regardless of selector specificity —
	   the same trick .inquiry-pair input already relies on above. Without
	   this, the higher-specificity ".inquiry-field input[type=text]" rule's
	   width:100% would stretch it to the full row and push everything
	   after it onto a new line. */
	flex: 0 0 100px;
	width: 100px;
	font-family: inherit;
	font-size: 0.9rem;
	border: 1px solid var(--border-light);
	border-radius: 8px;
	padding: 6px 10px;
	background: var(--bg-light-2);
}

/* Honeypot — off-screen rather than display:none, since some bots
   specifically skip fields hidden that way. Never seen or reachable by a
   real visitor (aria-hidden + tabindex="-1" too). */
.inquiry-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.inquiry-foot { margin-top: 28px; display: flex; justify-content: flex-end; }
.inquiry-foot .btn { border: none; }

@media (max-width: 900px) {
	.inquiry-grid { grid-template-columns: 1fr; gap: 28px; }
	.inquiry-col + .inquiry-col { border-left: none; padding-left: 0; border-top: 1px solid var(--border-light); padding-top: 24px; }
}
