@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Open+Sans:wght@400;600&display=swap');

.pf-calc-container {
  margin: 20px auto;
  max-width: 900px;
  padding: 0;
  color: #000;
  border-radius: 6px;
  overflow: hidden;
  background-color: #fff;
  font-family: 'Open Sans', sans-serif;
}

.pf-calc-container.pf-calc-mode-simple .pf-calc-advanced-only {
  display: none !important;
}

.pf-calc-container.pf-calc-mode-advanced .pf-calc-advanced-only {
  display: block !important;
}

.pf-calc-form {
  padding: 30px 25px;
  padding-left: 25px !important;
  padding-right: 25px !important;
  background-color: #fff;
}

.pf-calc-mode-row {
  margin-bottom: 24px;
  text-align: center;
}

.pf-calc-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 15px;
  text-align: center !important;
}

.pf-calc-toggle-group,
.pf-calc-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pf-calc-mode-btn,
.pf-calc-choice-btn {
  padding: 10px 14px;
  border: 2px solid #000;
  color: #000;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pf-calc-mode-btn.active,
.pf-calc-choice-btn.active {
  background: #000;
  color: #fff !important;
}

.pf-calc-section {
  padding: 25px !important;
  background: #f8f8f8;
  border: 1px solid #000;
  border-radius: 3px;
  margin-bottom: 25px;
}

.pf-calc-section-title {
  margin: 0 0 20px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  text-align: center !important;
}

.pf-calc-input-group {
  margin-bottom: 20px;
}

.pf-calc-input-group:last-child {
  margin-bottom: 0;
}

.pf-calc-input {
  padding: 12px 15px;
  border: 2px solid #000;
  border-radius: 6px;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  box-sizing: border-box;
}

.pf-calc-input-wide {
  width: 100%;
  max-width: 320px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.pf-calc-button {
  background-color: #000;
  border: 1px solid #000;
  color: #fff !important;
  border-radius: 6px;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 8px auto 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Montserrat', sans-serif;
}

.pf-calc-button:hover {
  background-color: #fff;
  color: #000 !important;
}

.pf-calc-button-secondary {
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #000 !important;
}

.pf-calc-button-secondary:hover {
  background-color: #000 !important;
  color: #fff !important;
}

.pf-calc-progress-container {
  padding: 30px 25px;
  background: #fff;
}

.pf-calc-progress-bar {
  width: 100%;
  height: 4px;
  background: #f8f8f8;
  border-radius: 2px;
  overflow: hidden;
}

.pf-calc-progress-fill {
  width: 0;
  height: 100%;
  background: #000;
}

.pf-calc-result-section {
  padding: 0 !important;
  border-top: 2px solid #eee;
  background: #fff;
}

.pf-calc-result-main {
  text-align: center;
  margin-bottom: 0;
  padding: 20px !important;
  background: #f8f8f8;
  border: 1px solid #000;
  border-radius: 6px;
}

.pf-calc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #555;
  margin-bottom: 10px;
  border: 1px solid #999;
  border-radius: 20px;
  padding: 8px 20px;
}

.pf-calc-result-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #777;
  margin: 0 0 12px;
  text-align: center !important;
  line-height: 1.35 !important;
}

.pf-calc-zone,
.pf-calc-theoretical {
  margin: 0 auto 10px;
  max-width: 520px;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 10px 12px;
}

.pf-calc-zone-title,
.pf-calc-theo-title {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pf-calc-zone-values {
  font-size: clamp(18px, 4.1vw, 26px);
}

.pf-calc-theo-values {
  font-size: clamp(14px, 3.1vw, 18px);
  font-weight: 600;
}

.pf-calc-indicators {
  background: transparent;
  border: 0;
  border-top: 1px solid #d9d9d9;
  border-radius: 0;
  padding: 18px 0 0 !important;
  margin: 14px 0 12px;
  text-align: left;
}

.pf-calc-indicators-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-calc-indicators-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

.pf-calc-indicators-list li:last-child {
  border-bottom: 0;
}

.pf-calc-message {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 14px;
  text-align: left;
}

.pf-calc-disclaimer {
  font-size: 12px;
  color: #333;
  line-height: 1.55;
  margin: 0;
  padding: 0 !important;
  text-align: left;
}

.pf-calc-result-actions {
  text-align: center;
  padding-bottom: 24px;
}

.pf-calc-warning {
  margin: 16px 0;
  padding: 14px 20px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 6px;
  color: #856404;
}

@media (max-width: 600px) {
  .pf-calc-form {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .pf-calc-toggle-group,
  .pf-calc-choice-group {
    flex-direction: column;
  }

  .pf-calc-mode-btn,
  .pf-calc-choice-btn {
    width: 100%;
  }
}
