/* Form pieces shared by the free creator and the logged-in app. */
.grp { font-size: 15px; font-weight: 700; margin: 26px 0 12px; display: flex; align-items: center; gap: 12px; letter-spacing: 0; }
.grp::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grp.first { margin-top: 10px; }
.hint { color: var(--muted); font-size: 14px; margin: -6px 0 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid.three { grid-template-columns: 1fr 1fr 1fr; }
.span-2 { grid-column: 1 / -1; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span, .field-label { font-size: 13.5px; font-weight: 600; color: #46524d; }
.field-label { margin: 16px 0 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  background: #fbfaf7; border: 1.5px solid var(--line); border-radius: 12px; text-align: start;
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input::placeholder, .field textarea::placeholder { color: #a9b0ab; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #cfc9bb; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--green); box-shadow: 0 0 0 4px rgba(14,90,75,.14); }

/* logo tile */
.logo-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.logo-drop { flex: 1; display: flex; align-items: center; gap: 14px; text-align: start; padding: 12px; border-radius: 16px; background: #fbfaf7; border: 1.5px dashed #cfc9bb; }
.logo-drop:hover { border-color: var(--green); background: var(--green-50); }
.logo-box { width: 56px; height: 56px; border-radius: 12px; background: #fff; box-shadow: var(--sh-1); display: grid; place-items: center; color: var(--green); overflow: hidden; flex: none; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-txt { display: grid; min-width: 0; } .logo-txt small { color: var(--muted); font-size: 13.5px; }
.text-btn { border: 0; background: none; color: var(--green); font-weight: 700; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; }

/* regime cards + payment pills */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice, .pill { position: relative; cursor: pointer; }
.choice input, .pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span { display: grid; gap: 2px; padding: 14px 16px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fbfaf7; transition: all .12s ease; }
.choice small { color: var(--muted); font-size: 13.5px; }
.choice input:checked + span { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 4px rgba(14,90,75,.10); }
.choice input:focus-visible + span, .pill input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--amber) 70%, transparent); outline-offset: 2px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill > span { display: block; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fbfaf7; font-weight: 600; font-size: 15px; transition: all .12s ease; }
.pill input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }

/* item cards */
.items { display: grid; gap: 12px; margin-top: 8px; }
.item { border: 1.5px solid var(--line); border-radius: 16px; padding: 14px 16px 16px; background: #fff; }
.item-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.item-n { font-size: 12.5px; font-weight: 700; color: var(--amber-700); background: var(--amber-50); padding: 4px 10px; border-radius: 999px; }
.line-total { margin-inline-start: auto; font-weight: 800; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon-btn { width: 34px; height: 34px; border: 0; border-radius: 10px; background: none; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: #f8e7e3; color: var(--danger); }
.icon-btn .ico { width: 17px; height: 17px; }
.items.single .icon-btn { display: none; }
.item-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; margin-top: 12px; }
.items.exempt .item-row { grid-template-columns: 1fr 1.6fr; }
.items.exempt .f-vat { display: none; }
.add-btn { margin-top: 12px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 14px; border: 1.5px dashed var(--green); background: none; color: var(--green); font-weight: 700; }
.add-btn:hover { background: var(--green-50); }

.summary { margin: 20px 0; padding: 8px 18px; border-radius: 16px; background: var(--green-50); }
.summary div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; }
.summary div[hidden] { display: none; }
.summary dt { color: #3d5c52; } .summary dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary .grand { border-top: 1px solid #c9dfd5; margin-top: 4px; padding-top: 12px; }
.summary .grand dt { color: var(--green-900); font-weight: 700; } .summary .grand dd { font-size: 22px; font-weight: 800; color: var(--green-900); }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--green-50); border-radius: 12px; font-size: 14.5px; }
.check input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.swatches { display: flex; gap: 7px; }
.swatches button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--c); box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
/* no line above the total when the rows above it are hidden (business outside VAT) */
.summary div[hidden] + .grand { border-top: 0; margin-top: 0; padding-top: 8px; }
