.aa-hofi-page {
	padding: 40px 16px;
	background: #f8fafc;
}

.aa-hofi-page [hidden] {
	display: none !important;
}

.aa-hofi-shell {
	max-width: 1080px;
	margin: 0 auto;
}

.aa-hofi-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	padding: 24px;
}

.aa-hofi-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.aa-hofi-brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.aa-hofi-brand-logo-wrap,
.aa-hofi-brand-placeholder {
	width: 72px;
	height: 72px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.aa-hofi-brand-logo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aa-hofi-brand-placeholder {
	font-size: 24px;
	font-weight: 700;
	color: #0f172a;
}

.aa-hofi-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 6px;
}

.aa-hofi-title {
	margin: 0 0 6px;
	font-size: 30px;
	line-height: 1.15;
	color: #0f172a;
}

.aa-hofi-subtitle {
	margin: 0;
	font-size: 15px;
	line-height: 1.65;
	color: #475569;
	max-width: 720px;
}

.aa-hofi-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.aa-hofi-grid {
	display: grid;
	gap: 16px;
}

.aa-hofi-grid-1 {
	grid-template-columns: 1fr;
}

.aa-hofi-section {
	background: #ffffff;
	padding: 10px 10px 0 10px;
}

.aa-hofi-section-title {
	margin: 0 0 16px;
	font-size: 20px;
	line-height: 1.3;
	color: #0f172a;
}

.aa-hofi-paragraph {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #475569;
}

.aa-hofi-field {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.aa-hofi-label {
	font-size: 15px;
	font-weight: 600;
	color: #0f172a;
	padding: 10px 0;
}

.aa-hofi-label small {
	display: block;
	font-size: 13px;
	font-weight: 400;
	color: #64748b;
	margin-top: 6px;
	line-height: 1.6;
}

.aa-hofi-help-line {
	display: block;
}

.aa-hofi-input,
.aa-hofi-select,
.aa-hofi-textarea {
	width: 100%;
	border: 1px solid #cbd5e1;
	padding: 14px 16px;
	font-size: 15px;
	color: #0f172a;
	background: #ffffff;
	box-sizing: border-box;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aa-hofi-input:focus,
.aa-hofi-select:focus,
.aa-hofi-textarea:focus {
	border-color: #0f172a;
	box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

.aa-hofi-inline-options {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.aa-hofi-option-card {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0 0 0;
	background: #ffffff;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.aa-hofi-option-card input {
	margin: 0;
}

.aa-hofi-checkbox-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.aa-hofi-check {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	border: 1px solid #e5e7eb;
	padding: 14px;
	background: #f8fafc;
	cursor: pointer;
	font-size: 14px;
	line-height: 1.6;
	color: #0f172a;
}

.aa-hofi-check input {
	margin-top: 3px;
}

.aa-hofi-rating-table {
	border: 1px solid #e5e7eb;
	overflow: hidden;
}

.aa-hofi-rating-table--cols-4 .aa-hofi-rating-row {
	display: grid;
	grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(90px, 1fr));
}

.aa-hofi-rating-table .aa-hofi-rating-row:nth-child(odd) {
	background: #ffffff;
}

.aa-hofi-rating-table .aa-hofi-rating-row:nth-child(even) {
	background: #f8fafc;
}

.aa-hofi-rating-head {
	background: #0f172a !important;
}

.aa-hofi-rating-head .aa-hofi-rating-cell {
	color: #ffffff;
	font-weight: 700;
	font-size: 13px;
}

.aa-hofi-rating-cell {
	padding: 14px 12px;
	border-right: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	min-height: 64px;
	box-sizing: border-box;
}

.aa-hofi-rating-row:last-child .aa-hofi-rating-cell {
	border-bottom: 0;
}

.aa-hofi-rating-cell:last-child {
	border-right: 0;
}

.aa-hofi-rating-label {
	justify-content: flex-start;
	text-align: left;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
}

.aa-hofi-rating-value {
	font-size: 13px;
}

.aa-hofi-rating-choice {
	cursor: pointer;
}

.aa-hofi-rating-choice input {
	display: none;
}

.aa-hofi-radio-dot {
	width: 18px;
	height: 18px;
	border: 2px solid #94a3b8;
	border-radius: 999px;
	display: inline-block;
	position: relative;
	background: #ffffff;
}

.aa-hofi-rating-choice input:checked + .aa-hofi-radio-dot {
	border-color: #0f172a;
}

.aa-hofi-rating-choice input:checked + .aa-hofi-radio-dot::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 8px;
	height: 8px;
	background: #0f172a;
	border-radius: 999px;
	transform: translate(-50%, -50%);
}

.aa-hofi-actions {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.aa-hofi-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	border: 0;
	background: #0f172a;
	color: #ffffff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.aa-hofi-button:hover {
	opacity: 0.94;
	transform: translateY(-1px);
}

.aa-hofi-button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.aa-hofi-message {
	font-size: 14px;
	font-weight: 600;
	min-height: 22px;
}

.aa-hofi-message.is-success {
	color: #166534;
}

.aa-hofi-message.is-error {
	color: #b91c1c;
}

@media (max-width: 900px) {
	.aa-hofi-rating-table {
		border: 0;
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.aa-hofi-rating-head {
		display: none;
	}

	.aa-hofi-rating-table--cols-4 .aa-hofi-rating-row {
		grid-template-columns: 1fr 1fr;
		border: 1px solid #e5e7eb;
		overflow: hidden;
	}

	.aa-hofi-rating-label {
		grid-column: 1 / -1;
		background: #f8fafc;
		font-size: 15px;
	}

	.aa-hofi-rating-cell {
		min-height: 56px;
	}
}

@media (max-width: 640px) {
	.aa-hofi-card {
		padding: 18px;
	}

	.aa-hofi-title {
		font-size: 24px;
	}

	.aa-hofi-header {
		margin-bottom: 20px;
	}

	.aa-hofi-brand {
		align-items: flex-start;
	}

	.aa-hofi-brand-logo-wrap,
	.aa-hofi-brand-placeholder {
		width: 58px;
		height: 58px;
	}
}


.aa-hofi-choice-step {
	border: 1px solid #e5e7eb;
	background: #f8fafc;
	padding: 24px;
}

.aa-hofi-choice-title {
	margin: 0 0 18px;
	font-size: 24px;
	line-height: 1.3;
	color: #0f172a;
}

.aa-hofi-choice-actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.aa-hofi-choice-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 22px;
	border: 1px solid #0f172a;
	background: #ffffff;
	color: #0f172a;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.aa-hofi-choice-button:hover {
	opacity: 0.94;
	transform: translateY(-1px);
}

.aa-hofi-choice-button-positive {
	background: #0f172a;
	color: #ffffff;
}

.aa-hofi-choice-button-negative {
	background: #ffffff;
	color: #0f172a;
}

.aa-hofi-feedback-content {
	display: flex;
	flex-direction: column;
	gap: 24px;
}


.aa-hofi-invalid .aa-hofi-input,
.aa-hofi-invalid .aa-hofi-select,
.aa-hofi-invalid .aa-hofi-textarea,
.aa-hofi-rating-row.aa-hofi-invalid {
	border-color: #fca5a5 !important;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.aa-hofi-error-tooltip,
.aa-hofi-rating-error {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	padding: 8px 12px;
	border: 1px solid #fecaca;
	border-radius: 9999px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
}

.aa-hofi-rating-error {
	grid-column: 1 / -1;
	justify-self: flex-start;
	margin: 8px 12px 12px;
	border-radius: 10px;
}


.aa-hofi-shortcode-logo {
	text-align: center;
}

.aa-hofi-shortcode-logo img {
	display: inline-block;
	max-width: 240px;
	height: auto;
}

.aa-hofi-shortcode-footer {
	text-align: center;
}

.aa-hofi-shortcode-footer-title {
	margin: 0 0 8px;
	font-size: 30px;
	line-height: 1.2;
	color: #0f172a;
}

.aa-hofi-shortcode-footer-text {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #475569;
}


.aa-hofi-text-center {
	text-align: center;
}

.aa-hofi-demo-experience-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

.aa-hofi-demo-option {
	border: 1px solid #e5e7eb;
	padding: 16px;
	background: #f8fafc;
	display: flex;
	flex-direction: column;
	gap: 8px;
	cursor: pointer;
}

.aa-hofi-demo-option input {
	margin: 0 0 4px;
}

.aa-hofi-demo-option-title {
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.aa-hofi-demo-option-desc {
	font-size: 13px;
	line-height: 1.5;
	color: #64748b;
}

.aa-hofi-demo-success-message {
	padding: 18px;
	border: 1px solid #bbf7d0;
	background: #f0fdf4;
	text-align: center;
	color: #166534;
	font-weight: 600;
	line-height: 1.7;
}

@media (max-width: 640px) {
	.aa-hofi-demo-experience-options {
		grid-template-columns: 1fr;
	}
}

.aa-hofi-shell--narrow { max-width: 860px; }
.aa-hofi-text-center { text-align: center; }
.aa-hofi-feedback-content { display: flex; flex-direction: column; gap: 24px; }
.aa-hofi-demo-experience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aa-hofi-demo-option-card { border: 1px solid #cbd5e1; border-radius: 8px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.aa-hofi-demo-option-head { display: flex; align-items: center; gap: 10px; }
.aa-hofi-demo-option-title { font-size: 16px; font-weight: 700; color: #0f172a; }
.aa-hofi-demo-option-desc { display: block; margin: 0 0 0 26px; font-size: 13px; line-height: 1.6; color: #64748b; }
.aa-hofi-demo-success-message { margin-top: 4px; padding: 20px; border: 1px solid #bbf7d0; border-radius: 10px; background: #f0fdf4; color: #166534; font-weight: 600; }
@media (max-width: 640px) { .aa-hofi-demo-experience-grid { grid-template-columns: 1fr; } }


.aa-hofi-form--direct,
.aa-hofi-form--direct .aa-hofi-feedback-content,
.aa-hofi-form--direct .aa-hofi-section,
.aa-hofi-form--direct .aa-hofi-actions,
.aa-hofi-form--direct .aa-hofi-grid,
.aa-hofi-form--direct .aa-hofi-field {
	opacity: 1 !important;
	visibility: visible !important;
}

.aa-hofi-form--direct .aa-hofi-feedback-content {
	display: flex !important;
}

.aa-hofi-form--direct #aa-hofi-negative-section:not([hidden]),
.aa-hofi-form--direct #aa-hofi-positive-section:not([hidden]) {
	display: block !important;
}
