/* =========================================================
   DOTTOR HOUSE® — Form candidatura Podcast
   ========================================================= */

[data-wpcf7-id="9468"] {
	--dh-red: #8b0000;          /* rosso brand: allinealo al rosso dei pulsanti */
	--dh-red-dark: #6b0000;
	--dh-blue: #3a7590;         /* teal del footer */
	--dh-ink: #3b3b3a;
	--dh-muted: #8c8c89;
	--dh-line: #e2e2de;
	--dh-field: #fbfbfa;

	margin: 0 auto;
	padding: 56px clamp(20px, 5vw, 60px);
	background: #fff;
	border: 1px solid var(--dh-line);
	border-top: 3px solid var(--dh-red);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .06);
	color: var(--dh-ink);
}

/* ---------- griglia del modulo ---------- */

[data-wpcf7-id="9468"] .wpcf7-form {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 26px 30px;
}

[data-wpcf7-id="9468"] .wpcf7-form > p,
[data-wpcf7-id="9468"] .wpcf7-form > div,
[data-wpcf7-id="9468"] .wpcf7-form > fieldset,
[data-wpcf7-id="9468"] .wpcf7-form > input[type="hidden"] {
	grid-column: 1 / -1;
	margin: 0;
}

/* Nome, Cognome, Cellulare, Email, Agenzia, Anni → due colonne */
[data-wpcf7-id="9468"] .wpcf7-form > p:nth-of-type(-n+6) {
	grid-column: span 1;
}

@media (max-width: 640px) {
	[data-wpcf7-id="9468"] .wpcf7-form > p:nth-of-type(-n+6) {
		grid-column: 1 / -1;
	}
}

/* ---------- etichette ---------- */

/* solo le etichette dei campi principali (p > label):
   NON quelle dentro i checkbox, che restano orizzontali */
[data-wpcf7-id="9468"] .wpcf7-form > p > label {
	display: flex;
	flex-direction: column;
	height: 100%;
	font-size: 14px;
	line-height: 1.45;
	letter-spacing: .04em;
	color: var(--dh-ink);
}

[data-wpcf7-id="9468"] label br {
	display: none;
}

/* il campo si allinea in basso: le righe restano dritte
   anche quando un'etichetta va a capo (es. Anni di esperienza) */
[data-wpcf7-id="9468"] .wpcf7-form > p > label > .wpcf7-form-control-wrap {
	display: block;
	margin-top: auto;
	padding-top: 8px;
}

/* ---------- campi ---------- */

/* Selettore per classe (non per type): vince sugli stili del tema
   e tratta allo stesso modo text, tel, email e number.
   appearance:none azzera la resa nativa del browser, che su alcuni
   type (email, tel) impone altezza e angoli propri. */
[data-wpcf7-id="9468"] input.wpcf7-form-control:not([type="submit"]),
[data-wpcf7-id="9468"] textarea.wpcf7-form-control {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 15px;
	color: var(--dh-ink);
	background: var(--dh-field);
	border: 1px solid var(--dh-line);
	border-radius: 0;
	box-shadow: none;
	transition: border-color .2s ease, background-color .2s ease;
}

/* altezza identica per tutti i campi a riga singola */
[data-wpcf7-id="9468"] input.wpcf7-form-control:not([type="submit"]) {
	height: 48px;
	padding: 0 16px;
	line-height: normal;
}

[data-wpcf7-id="9468"] input[type="number"] {
	max-width: none;
}

[data-wpcf7-id="9468"] textarea.wpcf7-form-control {
	min-height: 150px;
	padding: 14px 16px;
	line-height: 1.6;
	resize: vertical;
}

[data-wpcf7-id="9468"] input.wpcf7-form-control:not([type="submit"]):focus,
[data-wpcf7-id="9468"] textarea.wpcf7-form-control:focus {
	outline: none;
	background: #fff;
	border-color: var(--dh-red);
}

[data-wpcf7-id="9468"] ::placeholder {
	color: #b3b3ae;
	opacity: 1;
}

/* ---------- blocco disponibilità ---------- */

/* riga "Disponibilità per la registrazione del podcast" */
[data-wpcf7-id="9468"] .wpcf7-form > p:nth-of-type(10) {
	margin-top: 14px;
	padding-top: 30px;
	border-top: 1px solid var(--dh-line);
}

[data-wpcf7-id="9468"] .wpcf7-form > p:nth-of-type(10) strong {
	font-weight: 400;
	font-size: 20px;
	letter-spacing: .06em;
	color: var(--dh-ink);
}

/* riga di istruzioni */
[data-wpcf7-id="9468"] .wpcf7-form > p:nth-of-type(11) {
	margin-top: -14px;
	font-size: 14px;
	color: var(--dh-muted);
}

/* fasce orarie come selettori */
[data-wpcf7-id="9468"] .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

[data-wpcf7-id="9468"] .wpcf7-checkbox .wpcf7-list-item {
	margin: 0;
}

[data-wpcf7-id="9468"] .wpcf7-checkbox .wpcf7-list-item label {
	display: flex;
	flex-direction: row;
	align-items: center;
	height: auto;
	gap: 10px;
	padding: 11px 20px;
	font-size: 14px;
	border: 1px solid var(--dh-line);
	background: var(--dh-field);
	cursor: pointer;
	transition: border-color .2s ease, background-color .2s ease;
}

[data-wpcf7-id="9468"] .wpcf7-checkbox .wpcf7-list-item label:hover {
	border-color: var(--dh-blue);
}

[data-wpcf7-id="9468"] .wpcf7-checkbox .wpcf7-list-item label:has(input:checked) {
	border-color: var(--dh-red);
	background: rgba(139, 0, 0, .05);
}

[data-wpcf7-id="9468"] input[type="checkbox"] {
	width: 17px;
	height: 17px;
	accent-color: var(--dh-red);
	margin: 0;
	cursor: pointer;
}

/* ---------- privacy ---------- */

[data-wpcf7-id="9468"] .wpcf7-acceptance .wpcf7-list-item label {
	display: flex;
	flex-direction: row;
	align-items: center;
	height: auto;
	gap: 10px;
	font-size: 14px;
	color: var(--dh-muted);
}

[data-wpcf7-id="9468"] .wpcf7-acceptance .wpcf7-list-item {
	margin: 0;
}

[data-wpcf7-id="9468"] a {
	color: var(--dh-red);
	text-decoration: underline;
	text-underline-offset: 3px;
}

[data-wpcf7-id="9468"] a:hover {
	color: var(--dh-red-dark);
}

/* ---------- pulsante ---------- */

[data-wpcf7-id="9468"] .wpcf7-submit {
	min-width: 280px;
	padding: 16px 40px;
	font-family: inherit;
	font-size: 14px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
	background: var(--dh-red);
	border: 0;
	border-radius: 0;
	cursor: pointer;
	transition: background-color .2s ease;
}

[data-wpcf7-id="9468"] .wpcf7-submit:hover {
	background: var(--dh-red-dark);
}

/* il pulsante resta disabilitato finché non si accetta la privacy:
   grigio neutro, così non sembra un rosso brand sbiadito */
[data-wpcf7-id="9468"] .wpcf7-submit:disabled {
	background: #d9d9d5;
	color: #fff;
	opacity: 1;
	cursor: not-allowed;
}

[data-wpcf7-id="9468"] .wpcf7-submit:focus-visible,
[data-wpcf7-id="9468"] input:focus-visible,
[data-wpcf7-id="9468"] textarea:focus-visible {
	outline: 2px solid var(--dh-blue);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	[data-wpcf7-id="9468"] .wpcf7-submit {
		width: 100%;
		min-width: 0;
	}
}

/* ---------- validazione e messaggi ---------- */

[data-wpcf7-id="9468"] .wpcf7-not-valid {
	border-color: var(--dh-red);
	background: rgba(139, 0, 0, .04);
}

[data-wpcf7-id="9468"] .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 13px;
	color: var(--dh-red);
}

[data-wpcf7-id="9468"] .wpcf7-response-output {
	grid-column: 1 / -1;
	margin: 0;
	padding: 16px 20px;
	font-size: 14px;
	border-width: 1px;
	border-color: var(--dh-line);
}

[data-wpcf7-id="9468"] form.sent .wpcf7-response-output {
	border-color: var(--dh-blue);
	background: rgba(58, 117, 144, .06);
	color: var(--dh-blue);
}

[data-wpcf7-id="9468"] form.invalid .wpcf7-response-output,
[data-wpcf7-id="9468"] form.failed .wpcf7-response-output {
	border-color: var(--dh-red);
	background: rgba(139, 0, 0, .04);
	color: var(--dh-red);
}

/* ---------- intestazione opzionale ---------- */
/* Da usare se aggiungi un elemento Testo sopra il form con:
   <div class="dh-podcast-intro">
     <h1>Raccontaci come sei diventato agente immobiliare</h1>
     <p>Cerchiamo agenti da intervistare...</p>
   </div>                                                     */

.dh-podcast-intro {
	margin: 0 auto 36px;
	text-align: center;
}

.dh-podcast-intro h1 {
	margin: 0 0 18px;
	font-weight: 300;
	letter-spacing: .06em;
	line-height: 1.25;
}

.dh-podcast-intro h1::after {
	content: "";
	display: block;
	width: 60px;
	height: 2px;
	margin: 20px auto 0;
	background: #8b0000;
}

.dh-podcast-intro p {
	margin: 0 auto;
	color: #8c8c89;
}

.wpcf7[data-wpcf7-id="9468"]{ display:none; }
.wpcf7[data-wpcf7-id="9468"].is-open{ display:block; }