/* CO2 Calculator Tool Page */
.co2-tool { font-family: system-ui, -apple-system, sans-serif; max-width: 700px; margin: 30px auto; }
.co2-tool h2 { text-align: center; font-size: 22px; margin-bottom: 24px; }

/* Dialog Overlay */
.co2-dialog-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4); z-index: 9999; display: flex; align-items: center; justify-content: center; }
.co2-dialog { background: #fff; border-radius: 16px; padding: 32px 24px; max-width: 420px; width: 90%; text-align: center; position: relative; }
.co2-dialog-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.co2-dialog h3 { font-size: 20px; margin: 0 0 20px; }
.co2-dialog-items { display: flex; justify-content: center; gap: 24px; margin-bottom: 20px; }
.co2-dialog-item { text-align: center; }
.co2-dialog-item img, .co2-dialog-item .co2-icon-circle { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; background: #f0f0f0; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.co2-dialog-item .co2-icon-circle { font-size: 36px; }
.co2-dialog-item p { font-size: 13px; color: #333; margin: 0; line-height: 1.4; }
.co2-dialog-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0; font-size: 14px; color: #666; }
.co2-dialog-btn { display: block; width: 100%; padding: 14px; border: none; border-radius: 999px; background: #111; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }

/* Input Form */
.co2-form { padding: 20px; }
.co2-form-title { text-align: center; font-size: 18px; font-weight: 600; margin-bottom: 24px; color: #333; }
.co2-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.co2-field { }
.co2-field-label { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.co2-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.co2-field-input { display: flex; align-items: baseline; gap: 4px; border-bottom: 2px solid #e0e0e0; padding-bottom: 4px; }
.co2-field-input input { border: none; outline: none; font-size: 28px; font-weight: 300; width: 100%; text-align: right; background: transparent; color: #333; }
.co2-field-input input::placeholder { color: #ccc; }
.co2-field-input .co2-unit { font-size: 14px; color: #888; white-space: nowrap; }
.co2-field:last-child:nth-child(odd) { grid-column: 1; }

.co2-calc-btn { display: block; width: 100%; max-width: 400px; margin: 32px auto 0; padding: 16px; border: none; border-radius: 999px; background: #ccc; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.co2-calc-btn.active { background: #111; }

/* Results */
.co2-result { display: none; text-align: center; padding: 20px; }
.co2-result.show { display: block; }
.co2-result-back { display: inline-block; margin-bottom: 16px; color: #1a73e8; text-decoration: none; cursor: pointer; font-size: 14px; align-self: flex-start; }
.co2-total-label { font-size: 18px; font-weight: 700; color: #333; }
.co2-total-value { font-size: 64px; font-weight: 800; color: #111; line-height: 1.1; }
.co2-total-value .co2-total-unit { font-size: 24px; font-weight: 400; margin-left: 4px; }
.co2-chart-wrap { margin: 24px auto; max-width: 280px; }
.co2-recalc-btn { display: block; width: 100%; max-width: 400px; margin: 24px auto 0; padding: 16px; border: none; border-radius: 999px; background: #111; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }

/* Embed section */
.co2-embed-section { margin-top: 48px; padding-top: 32px; border-top: 2px solid #e5e7eb; }

@media (max-width: 480px) {
  .co2-grid { grid-template-columns: 1fr; }
  .co2-total-value { font-size: 48px; }
}
