
  :root {
    --pano-blue: #174b78;
    --pano-blue-dark: #103657;
    --pano-light: #f3f7fb;
    --pano-border: #dce4ec;
    --pano-text: #243447;
    --pano-muted: #667789;
  }

  * {
    box-sizing: border-box;
  }

  body {
    margin: 0;
    padding: 24px 14px;
    background: #f5f7fa;
    color: var(--pano-text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
  }

  .calculator {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border: 1px solid var(--pano-border);
    border-radius: 14px;
    box-shadow: 0 5px 24px rgba(25, 50, 75, 0.06);
  }

  .brand {
    margin: 0 0 6px;
    color: var(--pano-blue);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
  }

  h1 {
    margin: 0 0 8px;
    color: var(--pano-blue-dark);
    font-size: clamp(25px, 4vw, 34px);
    line-height: 1.2;
  }

  .intro {
    margin: 0 0 28px;
    color: var(--pano-muted);
    font-size: 15px;
  }

  .field {
    margin-bottom: 24px;
  }

  .field-label {
    display: block;
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
  }

  .area-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  input[type="number"],
  select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #cbd6e1;
    border-radius: 7px;
    background: #fff;
    color: var(--pano-text);
    font-size: 16px;
  }

  input:focus,
  select:focus {
    outline: 2px solid #a7c9e8;
    outline-offset: 1px;
    border-color: var(--pano-blue);
  }

  .unit-select {
    width: 120px;
  }

  .size-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .size-option {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--pano-border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
  }

  .size-option:has(input:checked) {
    border-color: var(--pano-blue);
    background: var(--pano-light);
  }

  .size-option input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--pano-blue);
  }

  .size-name {
    display: block;
    font-weight: 700;
  }

  .size-sub {
    display: block;
    margin-top: 3px;
    color: var(--pano-muted);
    font-size: 13px;
  }

  .waste-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .waste-value {
    color: var(--pano-blue);
    font-size: 25px;
    font-weight: 700;
  }

  input[type="range"] {
    width: 100%;
    margin: 8px 0;
    accent-color: var(--pano-blue);
    cursor: pointer;
  }

  .range-labels {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--pano-muted);
    font-size: 12px;
  }

  .range-ticks {
    display: flex;
    justify-content: space-between;
    margin-top: 7px;
    color: var(--pano-muted);
    font-size: 12px;
  }

  .results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 30px 0 14px;
  }

  .results-heading h2 {
    margin: 0;
    color: var(--pano-blue-dark);
    font-size: 21px;
  }

  .result-unit {
    color: var(--pano-muted);
    font-size: 12px;
  }

  .results {
    overflow: hidden;
    border: 1px solid var(--pano-border);
    border-radius: 9px;
  }

  .result-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border-bottom: 1px solid var(--pano-border);
  }

  .result-row:last-child {
    border-bottom: none;
  }

  .result-row:nth-child(even) {
    background: #f8fafc;
  }

  .material-name {
    font-weight: 600;
  }

  .material-detail {
    margin-top: 3px;
    color: var(--pano-muted);
    font-size: 12px;
  }

  .material-quantity {
    color: var(--pano-blue-dark);
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
  }

  .note {
    margin: 15px 0 0;
    color: var(--pano-muted);
    font-size: 12px;
  }

  .error {
    display: none;
    margin-top: 8px;
    color: #b42318;
    font-size: 13px;
  }

  .error.visible {
    display: block;
  }

  .footer {
    margin-top: 25px;
    padding-top: 17px;
    border-top: 1px solid var(--pano-border);
    color: var(--pano-muted);
    font-size: 12px;
    text-align: center;
  }

  @media (max-width: 560px) {
    body {
      padding: 12px 8px;
    }

    .calculator {
      padding: 22px 16px;
      border-radius: 10px;
    }

    .size-options {
      grid-template-columns: 1fr;
    }

    .area-row {
      grid-template-columns: minmax(0, 1fr) 100px;
      gap: 8px;
    }

    .unit-select {
      width: 100%;
    }

    .result-row {
      padding: 13px 12px;
    }

    .material-quantity {
      font-size: 20px;
    }
  }

.quote-cta {
  margin-top: 28px;
  padding: 28px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-align: center;
}

.quote-cta h3 {
  margin: 0 0 8px;
  color: #103657;
  font-size: 21px;
}

.quote-cta p {
  max-width: 480px;
  margin: 0 auto 20px;
  color: #667789;
  font-size: 14px;
}

.quote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 6px;
  background: #B95724;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

.quote-button:hover {
  background: #98451b;
  color: #ffffff !important;
}

.quote-button:focus-visible {
  outline: 3px solid #e8a27f;
  outline-offset: 3px;
}
