/* Hamid Lead Forms v4. Only page tokens; every selector prefixed .hd.hd */
.hd.hd .hd-form-wrap { max-width: 100%; }
.hd.hd .hd-form { font-family: var(--font-sans); font-size: 15px; font-weight: 300; direction: rtl; text-align: right; }
.hd.hd .hd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-bottom: 20px; }
.hd.hd .hd-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.hd.hd .hd-field--wide { grid-column: 1 / -1; }
.hd.hd .hd-label { display: block; padding: 0; margin: 0 0 8px; font-size: 15px; font-weight: 400; color: var(--ink); }
.hd.hd .hd-req { color: inherit; }

.hd.hd .hd-form input[type="text"],
.hd.hd .hd-form input[type="tel"],
.hd.hd .hd-form input[type="email"],
.hd.hd .hd-form textarea {
	display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 16px;
	font: inherit; font-size: 15px; font-weight: 300; line-height: 1.6;
	color: var(--ink); background: var(--surface);
	border: 1px solid var(--line-strong); border-radius: var(--radius-12);
	box-shadow: none; transition: border-color .2s var(--ease);
}
.hd.hd .hd-form textarea { resize: vertical; min-height: 110px; }
.hd.hd .hd-form input[dir="ltr"] { text-align: left; }
.hd.hd .hd-form input:focus-visible,
.hd.hd .hd-form textarea:focus-visible,
.hd.hd .hd-form button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Chips: real input kept in the layout (clipped), span is the visible chip */
.hd.hd .hd-choice-list { display: flex; flex-wrap: wrap; gap: 10px; }
.hd.hd .hd-choice { position: relative; display: inline-block; margin: 0; cursor: pointer; }
.hd.hd .hd-choice input {
	position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 100%;
	margin: 0; opacity: 0; cursor: pointer;
}
.hd.hd .hd-choice span {
	display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px;
	border: 1px solid var(--line-strong); border-radius: var(--radius-pill);
	color: var(--ink-body); background: transparent; font-size: 15px; font-weight: 300;
	transition: background .2s var(--ease), border-color .2s var(--ease);
}
.hd.hd .hd-choice input:checked + span { background: var(--sage-button); border-color: var(--sage-button); color: var(--ink); }
.hd.hd .hd-choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Errors, counter */
.hd.hd .hd-err { margin: 6px 0 0; font-size: 14px; font-weight: 400; color: var(--ink); }
.hd.hd .hd-err[hidden] { display: none; }
.hd.hd .hd-form [aria-invalid="true"] { border-color: var(--ink); }
.hd.hd .hd-err--form { margin: 0 0 14px; }
.hd.hd .hd-count { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); text-align: left; }

/* Honeypot: off-screen, not display:none so naive bots still fill it */
.hd.hd .hd-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hd.hd .hd-form button[disabled] { opacity: .7; cursor: wait; }

/* Dark band variant */
.hd.hd .hd-form--dark .hd-label,
.hd.hd .hd-form--dark input { color: var(--on-inverse); }
.hd.hd .hd-form--dark input[type="text"],
.hd.hd .hd-form--dark input[type="tel"],
.hd.hd .hd-form--dark input[type="email"],
.hd.hd .hd-form--dark textarea { background: var(--on-deep-fill); border-color: var(--on-deep-line); color: var(--on-inverse); }
.hd.hd .hd-form--dark .hd-choice span { border-color: var(--on-deep-line); color: var(--on-inverse); background: var(--on-deep-fill); }
.hd.hd .hd-form--dark .hd-choice input:checked + span { background: var(--sage-button); border-color: var(--sage-button); color: var(--ink); }
.hd.hd .hd-form--dark .hd-err { color: var(--light-red); }
.hd.hd .hd-form--dark [aria-invalid="true"] { border-color: var(--light-red); }
.hd.hd .hd-form--dark .hd-count { color: var(--on-deep-muted); }

/* Light band variant */
.hd.hd .hd-form--light .hd-label { color: var(--ink); }
.hd.hd .hd-form--light .hd-choice span { background: var(--surface-paper); }
.hd.hd .hd-form--light .hd-choice input:checked + span { background: var(--sage-button); color: var(--ink); }

/* After-submit panel (Calendly or message) */
.hd.hd .hd-after { direction: rtl; text-align: right; font-family: var(--font-sans); }
.hd.hd .hd-after h3 { margin: 0 0 16px; font-weight: 400; }
.hd.hd .hd-after:focus { outline: none; }
.hd.hd .hd-after p { margin: 0 0 14px; font-size: 16px; font-weight: 300; line-height: 1.9; }
.hd.hd .hd-after a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.hd.hd .hd-after--dark { color: var(--on-inverse); }
.hd.hd .hd-after--light { color: var(--ink); }
.hd.hd .hd-cal { display: block; width: 100%; height: 700px; border: 0; border-radius: var(--radius-16); background: var(--surface); }

@media (max-width: 800px) {
	.hd.hd .hd-form-grid { grid-template-columns: 1fr; }
	.hd.hd .hd-cal { height: 1000px; }
}
