/* ============================================================
   hp-sms-optin v1.0.0 -- A2P 10DLC consent form
   Compliance surface: restraint and clarity. Built on the
   hp-brand token system with hard fallbacks; sits inside the
   .hp-legal-content 720px measure on /sms-terms.
   ============================================================ */

.hp-sms-optin {
	max-width: 560px;
	margin: 24px 0 8px;
	font-family: 'Poppins', sans-serif;
}

.hp-sms-optin-form {
	background: var(--hp-white, #FFFFFF);
	border: 1px solid #E3E3DF;
	border-radius: 12px;
	padding: clamp(20px, 4vw, 32px);
}

/* Honeypot: visually removed, still in the accessibility-hidden DOM. */
.hp-sms-optin-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: 0;
}

.hp-sms-optin-field {
	margin: 0 0 16px;
}

/* Labels above inputs, per the P8 panel-grid convention. */
.hp-sms-optin-field label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--hp-navy, #10233F);
}

.hp-sms-optin-field input[type="text"],
.hp-sms-optin-field input[type="tel"] {
	display: block;
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font-family: inherit;
	font-size: 16px;
	color: var(--hp-navy, #10233F);
	background: var(--hp-paper, #FAFAF7);
	border: 1px solid #D5D5D0;
	border-radius: 8px;
	box-sizing: border-box;
}

.hp-sms-optin-field input:focus {
	outline: 2px solid var(--hp-navy, #10233F);
	outline-offset: 1px;
	border-color: var(--hp-navy, #10233F);
}

.hp-sms-optin-consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 20px 0;
	padding: 14px 16px;
	background: var(--hp-paper, #FAFAF7);
	border: 1px solid #E3E3DF;
	border-radius: 8px;
}

.hp-sms-optin-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	margin: 2px 0 0;
	accent-color: #EEB211;
	cursor: pointer;
}

.hp-sms-optin-consent label {
	font-size: 14px;
	line-height: 1.55;
	color: var(--hp-slate, #44546A);
	cursor: pointer;
}

.hp-sms-optin-disclosure {
	display: block;
}

.hp-sms-optin-privacy {
	display: block;
	margin-top: 6px;
}

.hp-sms-optin-privacy a {
	color: var(--hp-navy, #10233F);
	font-weight: 600;
	text-decoration: underline;
}

.hp-sms-optin-actions {
	margin: 4px 0 0;
}

.hp-sms-optin-submit {
	display: inline-block;
	min-height: 46px;
	padding: 12px 28px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	color: #212221;
	background: #EEB211;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 150ms ease, opacity 150ms ease;
}

.hp-sms-optin-submit:hover:not(:disabled) {
	background: #D9A20F;
}

.hp-sms-optin-submit:focus-visible {
	outline: 2px solid var(--hp-navy, #10233F);
	outline-offset: 2px;
}

.hp-sms-optin-submit:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.hp-sms-optin-error {
	margin: 14px 0 0;
	font-size: 14px;
	font-weight: 600;
	color: #B3261E;
}

.hp-sms-optin-success {
	background: var(--hp-paper, #FAFAF7);
	border: 1px solid #E3E3DF;
	border-left: 4px solid #EEB211;
	border-radius: 8px;
	padding: 18px 20px;
}

.hp-sms-optin-success p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--hp-navy, #10233F);
}

@media (max-width: 480px) {
	.hp-sms-optin-form {
		padding: 18px 16px;
	}
}
