/* Hormiproffa hormilaskuri. Värit ja fontit hormiproffa.fi-teeman mukaan. */
.hpl {
	--hpl-orange: #FF8C62;
	--hpl-orange-dark: #C74300;
	--hpl-text: #696969;
	--hpl-line: #e6e6e6;
	--hpl-bg: #faf7f5;
	max-width: 980px;
	margin: 0 auto;
	color: var(--hpl-text);
	font-family: "Nunito Sans", system-ui, sans-serif;
	font-weight: 300;
	line-height: 1.55;
	container-type: inline-size;
}
.hpl *, .hpl *::before, .hpl *::after { box-sizing: border-box; }
.hpl h2, .hpl h3, .hpl legend, .hpl strong { font-weight: 800; color: #3d3d3d; }
.hpl h2 { font-size: 1.7rem; margin: 0 0 .5em; }
.hpl-intro { margin-bottom: 1.5rem; }
.hpl a { color: var(--hpl-orange-dark); }

.hpl-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
@container (max-width: 760px) { .hpl-layout { grid-template-columns: 1fr; } .hpl-summary { position: static; } }

.hpl-step { border: 1px solid var(--hpl-line); border-radius: 12px; padding: 18px 20px 14px; margin: 0 0 16px; background: #fff; min-width: 0; }
.hpl-step legend { font-size: 1.1rem; padding: 0 8px; margin-left: -8px; display: flex; align-items: center; gap: 10px; }
.hpl-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hpl-orange); color: #fff; font-size: .9rem; }
.hpl-help { margin: 0 0 12px; font-size: .95rem; }
.hpl-sub { margin-top: 14px; }
.hpl-sublabel { font-weight: 800; color: #3d3d3d; margin: 14px 0 6px; }

.hpl-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.hpl-choice { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px 10px 38px; border: 1.5px solid var(--hpl-line); border-radius: 10px; cursor: pointer; background: #fff; min-width: 120px; transition: border-color .15s, background .15s; }
.hpl-choice:hover { border-color: var(--hpl-orange); }
.hpl-choice input { position: absolute; left: 12px; top: 13px; accent-color: var(--hpl-orange-dark); width: 16px; height: 16px; margin: 0; }
.hpl-choice:has(input:checked) { border-color: var(--hpl-orange-dark); background: var(--hpl-bg); }
.hpl-choice:has(input:focus-visible) { outline: 2px solid var(--hpl-orange-dark); outline-offset: 2px; }
.hpl-choice.is-disabled { opacity: .4; cursor: not-allowed; }
.hpl-choice img { max-width: 120px; height: auto; border-radius: 6px; margin-bottom: 4px; }
.hpl-choice-label { font-weight: 600; color: #3d3d3d; }
.hpl-choice-price { font-size: .85rem; color: var(--hpl-orange-dark); font-weight: 600; }
.hpl-choice-price:empty { display: none; }
.hpl-choice-wide { width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
.hpl-choices-small .hpl-choice { min-width: 90px; }

.hpl-with-img { display: flex; gap: 16px; align-items: flex-start; }
.hpl-with-img > img { width: 110px; height: auto; border-radius: 8px; flex: none; }
.hpl-with-img > div { flex: 1; min-width: 0; }
@container (max-width: 520px) { .hpl-with-img { flex-direction: column; } }

.hpl-field { margin: 10px 0; }
.hpl-field label { display: block; font-size: .9rem; margin-bottom: 4px; }
.hpl-field input, .hpl-field textarea { width: 100%; padding: 9px 12px; border: 1.5px solid var(--hpl-line); border-radius: 8px; font: inherit; color: #3d3d3d; background: #fff; }
.hpl-field input:focus, .hpl-field textarea:focus { border-color: var(--hpl-orange-dark); outline: none; }
.hpl-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hpl-inline label { margin: 0; }
.hpl-inline input { width: 140px; }
.hpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@container (max-width: 520px) { .hpl-grid { grid-template-columns: 1fr; } }
.hpl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hpl-consent { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; font-size: .92rem; }
.hpl-consent input { margin-top: 4px; accent-color: var(--hpl-orange-dark); }

.hpl-submit { background: var(--hpl-orange); color: #fff; border: 0; border-radius: 50px; padding: 14px 34px; font: inherit; font-weight: 800; font-size: 1.05rem; cursor: pointer; transition: background .15s; }
.hpl-submit:hover, .hpl-submit:focus-visible { background: var(--hpl-orange-dark); }
.hpl-submit:disabled { opacity: .6; cursor: wait; }

.hpl-errors { border-left: 4px solid #c0392b; background: #fdf1ef; padding: 10px 14px; border-radius: 6px; color: #8e2a1f; margin: 10px 0; }
.hpl-errors p { margin: 0 0 4px; font-weight: 600; }
.hpl-errors ul { margin: 0; padding-left: 18px; }
.hpl-done { border: 2px solid var(--hpl-orange); border-radius: 12px; padding: 20px; background: var(--hpl-bg); }

.hpl-summary { position: sticky; top: 24px; border-radius: 12px; background: var(--hpl-bg); border: 1px solid var(--hpl-line); padding: 18px; }
.hpl-summary h3 { margin: 0 0 10px; font-size: 1.2rem; }
.hpl-lines { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9rem; }
.hpl-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--hpl-line); }
.hpl-lines small { display: block; color: var(--hpl-text); }
.hpl-l-price { white-space: nowrap; font-weight: 600; color: #3d3d3d; }
.hpl-empty { color: var(--hpl-text); }
.hpl-row { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0; }
.hpl-row span:last-child { white-space: nowrap; }
.hpl-row-disc { color: var(--hpl-orange-dark); }
.hpl-row-total { font-weight: 800; font-size: 1.25rem; color: #3d3d3d; border-top: 2px solid var(--hpl-orange); padding-top: 8px; margin-top: 8px; }
.hpl-note, .hpl-missing { font-size: .82rem; margin: 8px 0 0; }
.hpl-missing { color: var(--hpl-orange-dark); }
.hpl-totals-wait { font-size: .9rem; margin: 8px 0 0; padding-top: 8px; border-top: 2px solid var(--hpl-orange); }
.hpl-notice { font-size: .9rem; margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--hpl-orange); background: var(--hpl-bg); border-radius: 4px; }
.hpl-row-net, .hpl-row-vat { font-size: .9rem; }
.hpl-row-net { border-top: 1px solid var(--hpl-line); padding-top: 6px; margin-top: 8px; }
.hpl-row-total small { display: block; font-size: .75rem; font-weight: 300; color: var(--hpl-text); }
