/* Decree Help — Utah Alimony Calculator. All rules are scoped to .dhac. */
.dhac {
	--dhac-page: #FBF7F1;
	--dhac-panel: #FFFDFA;
	--dhac-accent: #8E2B2B;
	--dhac-gold: #BFA06A;
	--dhac-text: #57504A;
	--dhac-ink: #1C1A19;
	max-width: 780px;
	margin: 0 auto;
	color: var(--dhac-text);
	font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	text-align: left;
}
.dhac *, .dhac *::before, .dhac *::after { box-sizing: border-box; }
.dhac [hidden] { display: none !important; }

.dhac-head { text-align: center; margin-bottom: 28px; }
.dhac-eyebrow {
	margin: 0 0 6px;
	color: var(--dhac-accent);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.dhac-title, .dhac h3, .dhac legend, .dhac-amount {
	font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
	color: var(--dhac-ink);
}
.dhac-title { margin: 0 0 12px; font-size: clamp(28px, 5vw, 38px); line-height: 1.2; font-weight: 600; }
.dhac-lede { margin: 0 auto; max-width: 620px; }

.dhac-card {
	margin: 0 0 22px;
	padding: 24px 26px 26px;
	min-width: 0;
	background: var(--dhac-panel);
	border: 1px solid var(--dhac-gold);
	border-radius: 4px;
}
.dhac legend {
	padding: 0 12px;
	margin-left: -12px;
	font-size: 21px;
	font-weight: 600;
}
.dhac-hint, .dhac small { color: var(--dhac-text); font-size: 13.5px; opacity: .85; }
.dhac-hint { margin: 0 0 12px; }
.dhac small { display: block; margin-top: 5px; line-height: 1.45; }

.dhac-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.dhac-field { display: block; margin: 0 0 18px; }
.dhac-field > span:first-child { display: block; margin-bottom: 6px; color: var(--dhac-ink); font-weight: 700; font-size: 14.5px; }

.dhac input[type="text"], .dhac input[type="email"], .dhac input[type="tel"],
.dhac input[type="number"], .dhac input[type="date"], .dhac select, .dhac textarea {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	background: #fff;
	color: var(--dhac-ink);
	border: 1px solid #D8CDBB;
	border-radius: 3px;
	font: inherit;
	box-shadow: none;
}
.dhac textarea { min-height: 90px; resize: vertical; }
.dhac input:focus, .dhac select:focus, .dhac textarea:focus {
	outline: 2px solid var(--dhac-accent);
	outline-offset: 1px;
	border-color: var(--dhac-accent);
}
.dhac-money { position: relative; display: block; }
.dhac-money::before {
	content: '$';
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--dhac-text);
}
.dhac .dhac-money input { padding-left: 26px; }

.dhac-yn .dhac-choices { display: flex; gap: 22px; }
.dhac-yn label { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.dhac input[type="radio"], .dhac input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--dhac-accent); margin: 0; }

.dhac-details { border-top: 1px solid #E9DFCF; padding-top: 12px; }
.dhac-details summary { cursor: pointer; color: var(--dhac-accent); font-weight: 700; font-size: 14.5px; }
.dhac-items { margin-top: 14px; }
.dhac-item { display: grid; grid-template-columns: 1fr 140px; gap: 12px; align-items: center; margin-bottom: 10px; font-size: 14.5px; }

.dhac-btn {
	display: block;
	width: 100%;
	padding: 15px 22px;
	background: var(--dhac-accent);
	color: #fff;
	border: 0;
	border-radius: 3px;
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .15s ease;
}
.dhac-btn:hover, .dhac-btn:focus-visible { background: #742222; color: #fff; }
.dhac-btn:disabled { opacity: .6; cursor: default; }

.dhac-error, .dhac-lead-msg.is-err {
	margin: 0 0 16px;
	padding: 12px 14px;
	background: #FBECEC;
	border-left: 3px solid var(--dhac-accent);
	color: #6B1F1F;
}
.dhac-lead-msg.is-ok { margin: 0 0 16px; padding: 12px 14px; background: #F1F5EC; border-left: 3px solid #5E7A4B; color: #35492A; }

.dhac-results { margin-top: 34px; scroll-margin-top: 90px; }
.dhac-result-card { text-align: left; }
.dhac-result-card > .dhac-eyebrow, .dhac-amount, .dhac-sub { text-align: center; }
.dhac-amount { margin: 4px 0 6px; font-size: clamp(30px, 6.5vw, 46px); line-height: 1.15; font-weight: 600; color: var(--dhac-accent); }
.dhac-amount span { font-size: .42em; font-family: 'Lato', Arial, sans-serif; color: var(--dhac-text); font-weight: 400; white-space: nowrap; }
.dhac-sub { margin: 0 auto 18px; max-width: 560px; }
.dhac-duration { margin: 0 0 8px; padding: 14px 16px; background: var(--dhac-page); border-left: 3px solid var(--dhac-gold); }
.dhac h3 { margin: 26px 0 12px; font-size: 20px; font-weight: 600; }
.dhac-lead h3 { margin-top: 0; }

.dhac-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15px; background: transparent; border: 0; }
.dhac-table th, .dhac-table td { padding: 9px 4px; border: 0; border-bottom: 1px solid #EDE4D5; text-align: left; background: transparent; }
.dhac-table th { padding-top: 16px; color: var(--dhac-accent); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; }
.dhac-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dhac-table .dhac-total td { color: var(--dhac-ink); font-weight: 700; border-bottom-color: var(--dhac-gold); }

.dhac-notes { margin: 0; padding-left: 20px; }
.dhac-notes li { margin-bottom: 9px; font-size: 15px; }
.dhac-disclaimer { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #E9DFCF; font-size: 13px; line-height: 1.55; opacity: .9; }

.dhac-consent { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; font-size: 14px; cursor: pointer; }
.dhac-consent input { flex: 0 0 auto; margin-top: 3px; }
.dhac-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dhac-phone, .dhac-cta-link { margin: 16px 0 0; text-align: center; }
.dhac a { color: var(--dhac-accent); }

@media (max-width: 600px) {
	.dhac-card { padding: 20px 16px; }
	.dhac-row { grid-template-columns: 1fr; }
	.dhac-item { grid-template-columns: 1fr 110px; }
}
