* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #1a1a1a;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

header {
  background: linear-gradient(135deg, #00838f 0%, #00acc1 100%);
  color: white;
  padding: 30px 24px;
  text-align: center;
}

header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

.progress-bar {
  height: 4px;
  background: #e0e0e0;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: #00acc1;
  transition: width 0.3s ease;
  width: 0%;
}

.step-indicator {
  padding: 16px 24px;
  font-size: 13px;
  color: #666;
  border-bottom: 1px solid #f0f0f0;
  font-weight: 500;
}

main {
  padding: 32px 24px;
  min-height: 400px;
}

.step {
  display: none;
  animation: fadeIn 0.3s ease;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step h2 {
  font-size: 20px;
  margin-bottom: 8px;
  color: #2c3e50;
  font-weight: 700;
}

.step-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 14px;
}

.input-group input[type="number"],
.input-group input[type="text"],
.input-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s;
  font-family: inherit;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #00acc1;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.help-text {
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #00acc1;
}

.help-text strong {
  color: #2c3e50;
}

.option-cards {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.option-card {
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  background: white;
}

.option-card:hover {
  border-color: #00acc1;
  background: #f8f9fa;
}

.option-card.selected {
  border-color: #00acc1;
  background: #e0f7fa;
}

.option-card input[type="radio"] {
  display: none;
}

.option-card-title {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.option-card-description {
  font-size: 13px;
  color: #666;
}

.icon {
  font-size: 20px;
}

.window-list {
  margin-top: 16px;
}

.window-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
}

.window-item select {
  flex: 1;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
}

.window-item button {
  padding: 8px 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.btn-add {
  margin-top: 12px;
  padding: 10px 20px;
  background: white;
  color: #00acc1;
  border: 2px dashed #00acc1;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s;
}

.btn-add:hover {
  background: #e0f7fa;
}

.checkbox-group {
  margin-top: 16px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.checkbox-item:hover {
  background: #f8f9fa;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  cursor: pointer;
}

.checkbox-item label {
  margin: 0;
  cursor: pointer;
  flex: 1;
  font-weight: 500;
}

.equipment-list {
  margin-top: 16px;
}

.equipment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.equipment-item input[type="number"] {
  width: 80px;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
}

.equipment-item span {
  flex: 1;
  font-size: 14px;
  color: #2c3e50;
}

.equipment-item-new {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  align-items: center;
}

.equipment-item-new input[type="text"] {
  flex: 2;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
}

.equipment-item-new input[type="number"] {
  width: 100px;
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}

.equipment-item-new .btu-label {
  font-size: 12px;
  color: #00acc1;
  font-weight: 600;
  white-space: nowrap;
  min-width: 80px;
}

.equipment-item-new button {
  padding: 8px 12px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.result-container {
  text-align: center;
  padding: 20px 0;
}

.result-main {
  background: linear-gradient(135deg, #00acc1 0%, #00838f 100%);
  color: white;
  padding: 32px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.result-btu {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-tons {
  font-size: 20px;
  opacity: 0.95;
  margin-bottom: 16px;
}

.result-recommendation {
  font-size: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-weight: 600;
}

.result-details {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  text-align: left;
  margin-bottom: 20px;
}

.result-details h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #2c3e50;
}

.result-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

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

.result-row.total-row {
  font-weight: 600;
  font-size: 15px;
  padding-top: 12px;
  color: #2c3e50;
  border-top: 2px solid #2c3e50;
  margin-top: 8px;
}

.result-row span:last-child {
  font-weight: 600;
  color: #00acc1;
}

.navigation {
  display: flex;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid #f0f0f0;
}

.btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.btn-primary {
  background: #00acc1;
  color: white;
}

.btn-primary:hover {
  background: #00838f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 172, 193, 0.3);
}

.btn-primary:disabled {
  background: #bdc3c7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: white;
  color: #666;
  border: 2px solid #e0e0e0;
}

.btn-secondary:hover {
  border-color: #00acc1;
  color: #00acc1;
}

.btn-restart {
  background: white;
  color: #00acc1;
  border: 2px solid #00acc1;
  margin-top: 12px;
}

.btn-restart:hover {
  background: #00acc1;
  color: white;
}

.btn-print {
  background: #27ae60;
  color: white;
  border: none;
  width: 100%;
  margin-bottom: 8px;
}

.btn-print:hover {
  background: #229954;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.print-header {
  display: none;
}

.print-result {
  display: none;
}

.print-footer {
  display: none;
}

@media print {
  body {
    background: white;
    padding: 0;
  }

  .container {
    box-shadow: none;
    max-width: 100%;
  }

  header, .progress-bar, .step-indicator, .navigation, footer, .no-print-hide {
    display: none !important;
  }

  .print-header {
    display: block;
    text-align: center;
    padding: 20px 0;
    border-bottom: 3px solid #2c3e50;
    margin-bottom: 30px;
  }

  .print-header h1 {
    font-size: 28px;
    color: #2c3e50;
    margin-bottom: 5px;
  }

  .print-header p {
    font-size: 16px;
    color: #666;
  }

  .print-result {
    display: block;
    margin-bottom: 30px;
  }

  .print-result h2 {
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 15px;
  }

  .print-result-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #00acc1;
  }

  .print-btu {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 5px;
  }

  .print-tons {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
  }

  .print-recommendation {
    font-size: 16px;
    font-weight: 600;
    color: #00acc1;
    padding: 12px;
    background: white;
    border-radius: 6px;
  }

  .result-details {
    page-break-inside: avoid;
    margin-bottom: 20px;
  }

  .result-details h3 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
  }

  .print-footer {
    display: block;
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    color: #666;
  }
}

.community-footer {
  background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%);
  padding: 24px;
  margin-top: 32px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #00acc1;
}

.community-footer h3 {
  font-size: 18px;
  color: #00838f;
  margin-bottom: 8px;
  font-weight: 700;
}

.community-footer p {
  font-size: 14px;
  color: #00695c;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn-community {
  background: #00acc1;
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
}

.btn-community:hover {
  background: #00838f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 172, 193, 0.4);
}

footer {
  padding: 20px 24px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.disclaimer {
  font-size: 13px;
  color: #666;
  text-align: center;
  line-height: 1.5;
  padding: 16px 24px;
  margin: 0;
}

@media (max-width: 600px) {
  body {
    padding: 0;
  }

  .container {
    border-radius: 0;
  }

  header {
    padding: 24px 20px;
  }

  header h1 {
    font-size: 20px;
  }

  main {
    padding: 24px 20px;
    min-height: 300px;
  }

  .input-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .result-btu {
    font-size: 36px;
  }

  .result-tons {
    font-size: 18px;
  }
}