/* Added CSS variables for customizable colors */
.iso-calculator-wrapper {
  max-width: 800px;
  margin: 30px auto;
  --primary-color: #0073aa;
  --secondary-color: #333;
  /* Added font size variables */
  --base-font-size: 16px;
  --heading-font-size: 28px;
}

.iso-calculator {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  /* Apply base font size to calculator container */
  font-size: var(--base-font-size);
}

/* Added logo styling */
.iso-calc-logo {
  text-align: center;
  margin-bottom: 25px;
}

.iso-calc-logo img {
  max-width: 300px;
  max-height: 100px;
  height: auto;
}

.iso-calculator h2 {
  margin-top: 0;
  margin-bottom: 25px;
  /* Use CSS variable for secondary color */
  color: var(--secondary-color);
  /* Use heading font size variable */
  font-size: var(--heading-font-size);
}

.iso-calculator h3 {
  margin-top: 20px;
  margin-bottom: 15px;
  /* Use CSS variable for secondary color */
  color: var(--secondary-color);
  /* Scale h3 based on heading size */
  font-size: calc(var(--heading-font-size) * 0.75);
}

.standard-display {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 20px;
}

.standard-display h3 {
  margin-top: 0;
}

.iso-calc-form .form-group {
  margin-bottom: 20px;
}

.iso-calc-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  /* Scale label size based on base font */
  font-size: calc(var(--base-font-size) * 0.95);
}

.iso-calc-form input[type="text"],
.iso-calc-form input[type="email"],
.iso-calc-form input[type="tel"],
.iso-calc-form input[type="number"],
.iso-calc-form select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  /* Use base font size variable for inputs */
  font-size: var(--base-font-size);
  transition: border-color 0.3s;
}

.iso-calc-form input:focus,
.iso-calc-form select:focus {
  outline: none;
  border-color: #0073aa;
}

.field-note {
  margin-top: 5px;
  /* Scale field notes based on base font */
  font-size: calc(var(--base-font-size) * 0.875);
  color: #666;
  font-style: italic;
}

.tier-info {
  padding: 15px;
  background: #e7f5ff;
  border-left: 44px solid #0073aa;
  margin-bottom: 20px;
  border-radius: 4px;
}

.tier-info p {
  margin: 5px 0;
}

/* Added styles for included items section */
.iso-calc-included-section {
  background: #f0f6fc;
  border-left: 4px solid #0073aa;
  padding: 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.iso-calc-included-section h3 {
  margin: 0 0 15px 0;
  color: #0073aa;
  /* Scale included section heading */
  font-size: calc(var(--heading-font-size) * 0.65);
}

.iso-calc-included-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.iso-calc-included-list li {
  padding: 8px 0 8px 25px;
  position: relative;
  line-height: 1.5;
  /* Use base font size for list items */
  font-size: var(--base-font-size);
}

.iso-calc-included-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #00a32a;
  font-weight: bold;
  font-size: 1.2em;
}

.cost-result {
  padding: 20px;
  background: #f0f9ff;
  border-radius: 6px;
  margin: 20px 0;
}

.cost-breakdown {
  margin: 15px 0;
}

.cost-breakdown p {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  color: #555;
}

.total-cost {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  margin-top: 15px;
  font-size: 20px;
}

.total-cost span {
  color: #0073aa;
  font-weight: bold;
}

.estimate-note {
  margin-top: 10px;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.iso-calc-btn {
  /* Use CSS variable for primary color */
  background: var(--primary-color);
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  /* Use base font size for button */
  font-size: var(--base-font-size);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  width: 100%;
}

.iso-calc-btn:hover {
  /* Darken primary color on hover */
  filter: brightness(0.9);
}

.quote-form-section {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-top: 30px;
}

.quote-form-section h3 {
  margin-top: 0;
  color: #333;
}

.quote-form-section .section-note {
  color: #666;
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.quote-success {
  padding: 20px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  margin-top: 15px;
}

.quote-success p {
  margin: 0;
  /* Use base font size for success message */
  font-size: var(--base-font-size);
}

/* Added styles for tier display, min/max pricing sections, and cert body stages */
.tier-display {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.tier-display h3 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  /* Scale tier display heading */
  font-size: calc(var(--heading-font-size) * 0.85);
}

.staff-range {
  color: #7f8c8d;
  /* Scale staff range text */
  font-size: calc(var(--base-font-size) * 0.875);
  margin: 0;
}

.pricing-section {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 25px;
}

.pricing-section h3 {
  margin-top: 0;
  /* Use CSS variables for colors */
  color: var(--secondary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.section-note {
  color: #7f8c8d;
  /* Scale section notes */
  font-size: calc(var(--base-font-size) * 0.875);
  margin-bottom: 20px;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ecf0f1;
}

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

.total-costs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.cost-total {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cost-total .price {
  /* Scale price based on heading size */
  font-size: calc(var(--heading-font-size) * 0.85);
  /* Use primary color for pricing */
  color: var(--primary-color);
  margin-top: 8px;
}

.cert-body-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.cert-body-card h4 {
  margin: 0 0 10px 0;
  color: #2c3e50;
  /* Scale cert body card heading */
  font-size: calc(var(--heading-font-size) * 0.71);
}

.body-rate {
  color: #7f8c8d;
  /* Scale body rate text */
  font-size: calc(var(--base-font-size) * 0.875);
  margin-bottom: 15px;
}

.stages-breakdown {
  margin: 15px 0;
}

.stage-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e1e8ed;
  /* Scale stage row text */
  font-size: calc(var(--base-font-size) * 0.875);
}

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

.three-year-total {
  background: #e8f5e9;
  padding: 15px;
  border-radius: 6px;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.three-year-total .price {
  /* Scale three year total price */
  font-size: calc(var(--heading-font-size) * 0.78);
  /* Use primary color for pricing */
  color: var(--primary-color);
}

/* Added VAT note styling for price breakdown */
.vat-note {
  /* Scale VAT note text */
  font-size: calc(var(--base-font-size) * 0.75);
  color: #7f8c8d;
  margin-top: 5px;
  font-style: italic;
}

.cycle-note {
  /* Scale cycle note text */
  font-size: calc(var(--base-font-size) * 0.75);
  color: #7f8c8d;
  margin: 10px 0 0 0;
  font-style: italic;
}

.field-help {
  margin-top: 5px;
  /* Scale field help text */
  font-size: calc(var(--base-font-size) * 0.8125);
  color: #7f8c8d;
}

@media screen and (max-width: 600px) {
  .iso-calculator {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Added mobile responsive styles for new layout */
  .total-costs {
    grid-template-columns: 1fr;
  }

  .three-year-total {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* Monthly cost styles */
.iso-monthly-cost-wrapper {
  max-width: 800px;
  margin: 30px auto;
  --primary-color: #000000;
  --secondary-color: #000000;
  --base-font-size: 16px;
  --heading-font-size: 28px;
}

.iso-monthly-cost {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: var(--base-font-size);
}

.iso-monthly-cost h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color);
  font-size: var(--heading-font-size);
}

.iso-monthly-description {
  color: #666;
  margin-bottom: 20px;
}

.monthly-cost-from-banner {
  text-align: center;
  padding: 25px 20px;
  background: #f5f5f5;
  border-radius: 10px;
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
}

.monthly-banner-amount {
  font-size: calc(var(--heading-font-size) * 1.3);
  font-weight: 700;
  color: var(--primary-color);
  margin: 8px 0 10px;
  line-height: 1.2;
}

.monthly-banner-note {
  font-size: calc(var(--base-font-size) * 0.875);
  color: #666;
  margin: 0;
  font-style: italic;
}

.monthly-cost-static {
  text-align: center;
  padding: 30px 20px;
}

.monthly-standard-label {
  font-size: calc(var(--base-font-size) * 0.875);
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.monthly-from-label {
  font-size: var(--base-font-size);
  color: #666;
  margin-bottom: 5px;
}

.monthly-amount {
  font-size: calc(var(--heading-font-size) * 1.4);
  font-weight: 700;
  color: var(--primary-color);
  margin: 10px 0 15px;
  line-height: 1.2;
}

.monthly-period {
  font-size: calc(var(--base-font-size) * 1.1);
  font-weight: 400;
  color: #666;
}

.monthly-note {
  font-size: calc(var(--base-font-size) * 0.75);
  color: #999;
  font-style: italic;
  margin-top: 15px;
}

.monthly-cost-result {
  margin-top: 25px;
}

.monthly-cost-display {
  background: #f5f5f5;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.monthly-tier-info {
  font-size: var(--base-font-size);
  color: #555;
  margin-bottom: 10px;
}

.monthly-vat-note {
  font-size: calc(var(--base-font-size) * 0.75);
  color: #7f8c8d;
  font-style: italic;
  margin-top: 5px;
}

@media screen and (max-width: 600px) {
  .iso-monthly-cost {
    padding: 20px;
  }

  .monthly-amount {
    font-size: calc(var(--heading-font-size) * 1.1);
  }

  .monthly-cost-display {
    padding: 20px;
  }
}

/* Added styles for multiple standards selection */
.standards-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

.standard-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.standard-checkbox:hover {
  border-color: var(--primary-color);
  background: #f0f8ff;
}

.standard-checkbox input[type="checkbox"] {
  margin: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.standard-checkbox input[type="checkbox"]:checked ~ * {
  font-weight: 600;
}
