/* Container */
#pricing-tool {
  background: var(--md-default-bg-color, white);
  padding: 2rem;
  max-width: 640px;
  margin: 2rem auto;
  border: 1px solid var(--md-outline, #d0d0d0);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  color: var(--md-primary-fg-color--dark);
}

/* Labels */
#pricing-tool label {
  display: block;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 1.5rem 0 0.25rem;
  color: var(--md-primary-fg-color--light);
}

/* Inputs */
#pricing-tool input {
  width: 100%;
  padding: 0.6rem;
  border-radius: 6px;
  border: 1px solid var(--md-outline, #ccc);
  font-size: 1rem;
  background-color: var(--md-surface, white);
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

#pricing-tool input:focus {
  border-color: var(--md-primary-fg-color);
  outline: none;
}

/* Duration input layout */
.duration-inputs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.duration-inputs input {
  flex: 1;
}

/* Chip set layout */
.md-chip-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

/* Chip style */
.md-chip {
  display: inline-flex;
  flex: 1 1 0;
  min-width: 80px;
  max-width: 100%;
  align-items: center;
  text-align: center;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 9999px;
  padding: 0.5rem 1.2rem;
  background-color: var(--md-surface-container-low, #f1f3f5);
  color: var(--md-primary-fg-color);
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.md-chip:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

input[type="radio"]:checked + .md-chip {
  background-color: rgba(44, 86, 151, 0.1); /* soft blue tint */
  color: var(--md-primary-fg-color);
  border: 2px solid var(--md-primary-fg-color);
  font-weight: 600;
}


/* Hidden inputs (used with chips) */
#pricing-tool input[type="radio"] {
  display: none;
}

/* Logos */
.chip-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chip-logo {
  max-height: 32px;
  max-width: 100px;
  object-fit: contain;
}

/* Result box */
#pricing-tool #result {
  margin-top: 2rem;
  background-color: var(--md-surface-container, #f9fafc);
  padding: 1.75rem 2rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0;
  transform: translateY(0.5rem);
}

#pricing-tool #result.visible {
  opacity: 1;
  transform: translateY(0);
}

#pricing-tool #result .cost-line {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

#pricing-tool #result .savings-line {
  font-size: 1rem;
  font-weight: 500;
  color: var(--md-primary-fg-color);
}

/* Make chip sets wrap and align better on mobile */
.md-chip-set {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Give each chip a fixed min-width but flexible sizing */
.md-chip {
  flex: 1 1 auto;
  min-width: 100px;
  text-align: center;
  white-space: nowrap;
}

/* Make chip logos line up better inside */
.chip-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.chip-logo {
  max-height: 28px;
  max-width: 80px;
  object-fit: contain;
}

/* Make sure duration inputs don't stretch weirdly */
.duration-inputs input {
  flex: 1 1 0;
  min-width: 0;
}

/* Ensure the container doesn't cause horizontal scrolling */
#pricing-tool {
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  padding: 1.5rem;
  margin: 2rem auto;
}

/* Optional: allow plan selection chips to wrap better */
@media screen and (max-width: 480px) {
  .md-chip {
    font-size: 0.875rem;
    padding: 0.5rem 0.8rem;
  }
}

@media screen and (max-width: 600px) {
  #pricing-tool {
    border: none;
    box-shadow: none;
    padding: 1rem;
  }
}
/* ===================== */
/* Pricing Grid (Card Layout) */
/* ===================== */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.pricing-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  width: 320px;
  border: 1px solid #eee;
}

.pricing-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--md-primary-fg-color);
}

.pricing-card .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.pricing-card table {
  width: 100%;
  font-size: 0.9rem;
  border-collapse: collapse;
}

.pricing-card td {
  padding: 0.25rem 0.5rem;
  border-bottom: 1px solid #eee;
}

.pricing-card td:first-child {
  font-weight: 500;
  color: var(--md-primary-fg-color--dark);
}


/* ===================== */
/* Comparison Table (Tabs) */
/* ===================== */
.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.85rem;
}

.pricing-compare-table thead {
  background-color: #f9f9f9;
}

.pricing-compare-table th,
.pricing-compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}


.pricing-compare-table tbody tr:hover td {
  background-color: #eef3fb;
}

.pricing-logo {
  max-height: 40px;
  max-width: 100px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
  margin: auto;
}

#pricing-tool,
.pricing-compare-wrapper {
  max-width: 640px;
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  background: var(--md-default-bg-color, white);
  border: 1px solid var(--md-outline, #d0d0d0);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.pricing-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pricing-compare-table th,
.pricing-compare-table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.pricing-compare-table td:first-child {
  text-align: left;
  background-color: #fafafa;
  font-weight: 500;
  color: var(--md-primary-fg-color--dark);
}
