/* Formulaire d'envoi d'ordonnance — design system Gohealt (v2). */
.gohealt-rx-form{
	width:100%;max-width:none;box-sizing:border-box;
	background:var(--wp--preset--color--surface,#fff);
	border:1px solid var(--wp--preset--color--line,#D3E6DD);
	border-radius:22px;
	padding:clamp(1.35rem,1.1rem + 1.6vw,2.1rem)!important;
	box-shadow:0 14px 38px rgba(6,78,59,.08);
}
.gohealt-rx-form > *:first-child{margin-top:0}

.gohealt-rx-row{margin:0 0 1.15rem}
.gohealt-rx-row:last-child{margin-bottom:0}
.gohealt-rx-row label{
	display:block;font-weight:600;font-size:.9rem;letter-spacing:.01em;
	margin-bottom:.4rem;color:var(--wp--preset--color--ink,#0A1512);
}

.gohealt-rx-row input[type=text],
.gohealt-rx-row input[type=tel],
.gohealt-rx-row textarea{
	width:100%;box-sizing:border-box;font:inherit;font-size:1rem;
	min-height:52px;padding:.75rem 1rem;
	border:1.5px solid var(--wp--preset--color--border-strong,#9BB3AB);
	border-radius:14px;background:#fff;color:var(--wp--preset--color--ink,#0A1512);
	transition:border-color .15s ease,box-shadow .15s ease,background .15s ease;
}
.gohealt-rx-row textarea{min-height:96px;resize:vertical;line-height:1.5}
.gohealt-rx-row input:hover,
.gohealt-rx-row textarea:hover{border-color:var(--wp--preset--color--brand,#10B981)}
.gohealt-rx-row input:focus,
.gohealt-rx-row textarea:focus{
	outline:none;border-color:var(--wp--preset--color--brand-strong,#097A55);
	box-shadow:0 0 0 4px rgba(9,122,85,.16);
}

/* Zone de dépôt du fichier (PDF / photo) */
.gohealt-rx-row input[type=file]{
	width:100%;box-sizing:border-box;font:inherit;cursor:pointer;
	padding:1rem;border:1.5px dashed var(--wp--preset--color--border-strong,#9BB3AB);
	border-radius:14px;background:var(--wp--preset--color--mist,#EFF7F3);
	color:var(--wp--preset--color--ink-muted,#46615A);
	transition:border-color .15s ease,background .15s ease;
}
.gohealt-rx-row input[type=file]:hover{border-color:var(--wp--preset--color--brand,#10B981);background:#fff}
.gohealt-rx-row input[type=file]:focus{
	outline:none;border-color:var(--wp--preset--color--brand-strong,#097A55);
	box-shadow:0 0 0 4px rgba(9,122,85,.16);
}
.gohealt-rx-row input[type=file]::file-selector-button{
	font:inherit;font-weight:700;cursor:pointer;margin-right:.9rem;border:0;
	padding:.6rem 1.15rem;border-radius:999px;
	background:var(--wp--preset--color--brand,#10B981);color:var(--wp--preset--color--ink,#0A1512);
	transition:background .15s ease;
}
.gohealt-rx-row input[type=file]::file-selector-button:hover{background:var(--wp--preset--color--brand-hover,#0EA372)}
.gohealt-rx-hint{
	display:block;margin-top:.45rem;font-size:.85rem;line-height:1.5;
	color:var(--wp--preset--color--ink-muted,#46615A);
}

/* Consentement RGPD — encadré discret */
.gohealt-rx-consent{
	background:var(--wp--preset--color--mist,#EFF7F3);
	border:1px solid var(--wp--preset--color--line,#D3E6DD);
	border-radius:12px;padding:.85rem 1rem;
}
.gohealt-rx-consent label{
	display:flex;gap:.65rem;align-items:flex-start;
	font-weight:400;font-size:.9rem;line-height:1.45;margin:0;
	color:var(--wp--preset--color--ink-muted,#46615A);
}
.gohealt-rx-consent input[type=checkbox]{
	width:20px;height:20px;flex:none;margin:.05rem 0 0;
	accent-color:var(--wp--preset--color--brand-strong,#097A55);cursor:pointer;
}

/* Bouton d'envoi */
.gohealt-rx-submit{
	font:inherit;font-weight:700;font-size:1.02rem;cursor:pointer;border:0;width:100%;
	background:var(--wp--preset--color--brand,#10B981);color:var(--wp--preset--color--ink,#0A1512);
	padding:.95rem 1.6rem;border-radius:999px;
	box-shadow:0 12px 26px rgba(16,185,129,.28);
	transition:transform .12s ease,box-shadow .15s ease,background .15s ease;
}
.gohealt-rx-submit:hover{background:var(--wp--preset--color--brand-hover,#0EA372);transform:translateY(-1px)}
.gohealt-rx-submit:active{transform:translateY(0)}
.gohealt-rx-submit:focus-visible{outline:3px solid var(--wp--preset--color--brand-strong,#097A55);outline-offset:2px}

/* Messages de retour */
.gohealt-rx-notice{
	border-radius:14px;padding:.95rem 1.15rem;margin-bottom:1.3rem;font-weight:600;
	border-left:4px solid transparent;
}
.gohealt-rx-notice--ok{background:var(--wp--preset--color--brand-tint,#D8F5E8);color:var(--wp--preset--color--brand-strong,#097A55);border-left-color:var(--wp--preset--color--brand,#10B981)}
.gohealt-rx-notice--err{background:#F7E1DD;color:var(--wp--preset--color--garde,#C23A2B);border-left-color:#C23A2B}

@media(min-width:640px){
	.gohealt-rx-submit{width:auto;min-width:250px}
}
