:root {
  --ezazfe-yellow: #ffe300;
  --ezazfe-dark: #1f2937;
  --ezazfe-text: #1f2937;
  --ezazfe-muted: #4b5563;
  --ezazfe-border: #d1d5db;
  --ezazfe-bg: #f3f4f6;
  --ezazfe-good: #065f46;
  --ezazfe-error: #991b1b;
}

.ezazfe-wrap, .ezazfe-wrap * { box-sizing: border-box; }
.ezazfe-wrap { width: 100%; display: flex; justify-content: center; padding: 1rem 0; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ezazfe-text); }
.ezazfe-card { width: 100%; max-width: 1120px; background: #fff; border: 4px solid var(--ezazfe-yellow); border-radius: 18px; box-shadow: 0 20px 32px rgba(15, 23, 42, .12); padding: clamp(1rem, 2.5vw, 2rem); }
.ezazfe-brand { text-align: center; margin-bottom: 1rem; }
.ezazfe-logo { width: 180px; max-width: 70%; height: auto; margin-bottom: .5rem; }
.ezazfe-brand p { margin: 0; color: var(--ezazfe-muted); font-style: italic; font-size: .92rem; }
.ezazfe-title { text-align: center; font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.1; margin: 0 0 .35rem; color: var(--ezazfe-dark); }
.ezazfe-subtitle { text-align: center; color: var(--ezazfe-muted); margin: 0 0 1.5rem; }
.ezazfe-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; align-items: start; }
@media (min-width: 980px) { .ezazfe-grid { grid-template-columns: minmax(0, 2fr) minmax(285px, 1fr); gap: 2rem; } }
.ezazfe-form { display: grid; gap: 1rem; }
.ezazfe-field label { display: block; font-size: .9rem; font-weight: 700; color: var(--ezazfe-muted); margin-bottom: .35rem; }
.ezazfe-field small { display: block; margin-top: .3rem; color: var(--ezazfe-muted); font-size: .78rem; }
.ezazfe-field input, .ezazfe-field select { width: 100%; border: 1px solid var(--ezazfe-border); border-radius: 10px; background: #fff; padding: .7rem .8rem; min-height: 44px; color: var(--ezazfe-text); font-size: .95rem; }
.ezazfe-field input:focus, .ezazfe-field select:focus { outline: none; border-color: var(--ezazfe-yellow); box-shadow: 0 0 0 4px rgba(255, 227, 0, .35); background: #fffdf0; }
.ezazfe-field input.is-valid, .ezazfe-field select.is-valid { border-color: var(--ezazfe-dark); }
.ezazfe-money { position: relative; }
.ezazfe-money span { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ezazfe-muted); font-weight: 700; }
.ezazfe-money input { padding-left: 1.75rem; }
.ezazfe-check { display: flex; gap: .6rem; align-items: center; font-weight: 700; color: var(--ezazfe-dark); cursor: pointer; }
.ezazfe-check input { width: 1.25rem; height: 1.25rem; accent-color: var(--ezazfe-yellow); cursor: pointer; }
.ezazfe-tax-box { background: #f9fafb; border: 1px solid var(--ezazfe-border); border-radius: 14px; padding: 1rem; display: grid; gap: .9rem; }
.ezazfe-mini-note { margin: 0; font-size: .8rem; color: var(--ezazfe-muted); }
.is-hidden { display: none !important; }
.ezazfe-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.ezazfe-button { border: 3px solid var(--ezazfe-dark); border-radius: 12px; padding: .75rem 1rem; background: var(--ezazfe-yellow); color: var(--ezazfe-dark); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; cursor: pointer; box-shadow: 4px 4px 0 var(--ezazfe-dark); transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease; }
.ezazfe-button:hover:not(:disabled) { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ezazfe-dark); }
.ezazfe-button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; background: #9ca3af; color: #fff; border-color: #6b7280; }
.ezazfe-button.secondary { background: #fff; color: var(--ezazfe-dark); }
.ezazfe-message { margin-top: 1rem; padding: .8rem 1rem; border-radius: 10px; background: #eff6ff; color: #1e3a8a; font-weight: 700; }
.ezazfe-message.is-error { background: #fee2e2; color: var(--ezazfe-error); }
.ezazfe-results { margin-top: 1.5rem; border-top: 1px solid var(--ezazfe-border); padding-top: 1.25rem; }
.ezazfe-print-header { display: none; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.ezazfe-print-header img { width: 120px; height: auto; }
.ezazfe-print-header h2 { margin: 0; }
.ezazfe-print-header p { margin: .25rem 0 0; color: var(--ezazfe-muted); }
.ezazfe-total-card { background: var(--ezazfe-dark); color: #fff; border-radius: 16px; padding: 1rem 1.1rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.ezazfe-total-card span { font-weight: 700; }
.ezazfe-total-card strong { font-size: clamp(1.55rem, 3vw, 2.25rem); color: var(--ezazfe-yellow); }
.ezazfe-two-col { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 760px) { .ezazfe-two-col { grid-template-columns: 1fr 1fr; } }
.ezazfe-results h3 { border-bottom: 1px solid var(--ezazfe-border); padding-bottom: .45rem; margin: .25rem 0 .75rem; }
.ezazfe-row { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed #e5e7eb; padding: .45rem 0; }
.ezazfe-row span:first-child { color: var(--ezazfe-muted); }
.ezazfe-row strong { text-align: right; }
.ezazfe-row.total-tax { border-top: 2px solid var(--ezazfe-border); margin-top: .35rem; padding-top: .7rem; }
.ezazfe-vlt-box { background: var(--ezazfe-bg); border: 1px solid var(--ezazfe-border); border-radius: 12px; padding: .9rem 1rem; margin: 1rem 0; color: var(--ezazfe-muted); }
.ezazfe-vlt-box strong { color: var(--ezazfe-dark); }
.ezazfe-disclaimer { color: var(--ezazfe-error); font-style: italic; line-height: 1.45; margin: 1rem 0 0; }
.ezazfe-guidance h3 { font-size: 1.35rem; margin: 0 0 .75rem; padding-bottom: .55rem; border-bottom: 1px solid var(--ezazfe-border); }
.ezazfe-tip { border: 1px solid var(--ezazfe-border); border-radius: 14px; padding: 1rem; background: #fff; margin-bottom: .8rem; }
.ezazfe-tip h4 { margin: 0 0 .35rem; }
.ezazfe-tip p { margin: 0; color: var(--ezazfe-muted); line-height: 1.45; }

@media (max-width: 560px) {
  .ezazfe-card { border-width: 3px; border-radius: 14px; }
  .ezazfe-actions { flex-direction: column; }
  .ezazfe-button { width: 100%; }
  .ezazfe-total-card { align-items: flex-start; flex-direction: column; }
}

@media print {
  @page { margin: 0.35in; size: auto; }

  body.ezazfe-printing { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.ezazfe-printing * { visibility: hidden !important; box-shadow: none !important; }
  body.ezazfe-printing .ezazfe-print-area,
  body.ezazfe-printing .ezazfe-print-area * { visibility: visible !important; }
  body.ezazfe-printing .ezazfe-print-area {
    display: block !important;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #000;
    background: #fff;
    font-size: 11.5px;
    line-height: 1.25;
  }
  body.ezazfe-printing .ezazfe-no-print,
  body.ezazfe-printing .ezazfe-actions { display: none !important; }
  body.ezazfe-printing .ezazfe-print-header { display: flex !important; gap: 10px; margin: 0 0 12px; }
  body.ezazfe-printing .ezazfe-print-header img { width: 82px; max-width: 82px; }
  body.ezazfe-printing .ezazfe-print-header h2 { font-size: 21px; line-height: 1.05; margin: 0 0 2px; }
  body.ezazfe-printing .ezazfe-print-header p { font-size: 10.5px; margin: 0; }
  body.ezazfe-printing .ezazfe-total-card { border: 2px solid #000; border-radius: 8px; background: #fff; color: #000; padding: 8px 10px; margin: 0 0 12px; break-inside: avoid; }
  body.ezazfe-printing .ezazfe-total-card strong { color: #000; font-size: 22px; line-height: 1; }
  body.ezazfe-printing .ezazfe-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
  body.ezazfe-printing .ezazfe-results h3 { font-size: 17px; line-height: 1.1; margin: 0 0 7px; padding-bottom: 5px; break-after: avoid; }
  body.ezazfe-printing .ezazfe-row { padding: 4px 0; break-inside: avoid; page-break-inside: avoid; }
  body.ezazfe-printing .ezazfe-row strong { white-space: nowrap; }
  body.ezazfe-printing .ezazfe-vlt-box { margin: 10px 0 0; padding: 7px 8px; font-size: 10.5px; line-height: 1.25; break-inside: avoid; }
  body.ezazfe-printing .ezazfe-disclaimer { margin: 8px 0 0; font-size: 10.5px; line-height: 1.25; break-inside: avoid; }
}
