/* ==========================
   BROADBAND FLOW STYLES
========================== */

.broadband-providers {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

.provider-section {
  text-align: left !important;
}

.provider-name {
  font-size: 1.3rem;
  font-weight: 500;
  height: 60px;
}

.provider-price {
  font-size: 1.4rem;
  font-weight: 500;
}

/* --- Contract Length Section --- */
.contract-length {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
}

.contract-length p {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  flex-basis: 100%;
  text-align: left;
}

.contract-length label {
  font-size: 16px;
  font-weight: 500;
}

.contract-length input[type="radio"] {
  margin-right: 8px;
}

/* --- Tariff Results --- */
/* ==========================
   BROADBAND PLAN STEP STYLES
========================== */

a {
  text-decoration: none !important;
}

.provider-container {
  gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

/* Cap broadband plans at 6 (with bottom fade like Business SIMs) */
#broadband-results {
  position: relative;
  padding-bottom: 20px;
}

#broadband-results .bb-card:nth-of-type(n + 7) {
  display: none;
}

#broadband-results::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1rem;
  height: 400px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0%) 0%,
    var(--color-alt-content-bg, #ffffff) 85%
  );
}

/* New broadband card */
.bb-card {
  position: relative;
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 350px;
  display: block;
  border: 2px solid var(--color-content-border);
  background: var(--color-content-bg-alt);
}

.bb-card.selected {
  border-color: #1a1a6a;
  box-shadow: 0 8px 20px rgba(26, 26, 106, 0.12);
}

.bb-logo {
  text-align: center;
  margin-bottom: 12px;
}

.bb-logo img {
  max-width: 110px;
  max-height: 60px;
  object-fit: contain;
}

.bb-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-red);
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-top: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.bb-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.bb-speed {
  text-align: left;
}

.bb-speed-value {
  font-size: 24px;
  font-weight: 700;
  color: #1e3050;
  line-height: 1.1;
  text-align: left;
}

.bb-speed-label {
  font-size: 13px;
  color: #4a4a4a;
  margin-bottom: 8px;
  text-align: left;
}

.bb-price {
  text-align: right;
}

.bb-price-amount {
  font-size: 20px;
  font-weight: 700;
  color: #1e3050;
  line-height: 1.1;
}

.bb-price-label {
  font-size: 12px;
  color: #4a4a4a;
}

.bb-divider {
  border: none;
  border-top: 1px solid #dcdcdc;
  margin: 14px 0;
}

.bb-heading {
  font-weight: 700;
  text-decoration: underline;
  margin-bottom: 10px;
  color: #1e3050;
  text-align: left;
}

.bb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.bb-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid #d3d3d3;
  background: #f8f8f8;
  font-size: 14px;
  color: #3a3a3a;
  white-space: nowrap;
}

.bb-suitable-tags {
  margin-top: 8px;
  min-height: 80px;
}

.bb-suitable-tag {
  background: #eef1ff;
  border-color: #c8cffb;
}

.bb-contract {
  margin: 0 0 16px;
  color: #1e3050;
  font-size: 14px;
}

.bb-select {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: #1a1a6a;
  color: #fff !important;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 600;
  text-decoration: none !important;
  border: 1px solid #1a1a6a;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
}

.bb-select:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

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

/* Hover + active states */
.provider-logo:hover img,
.provider-logo input[type="radio"]:checked + img,
.provider-logo .active {
  border-color: #007916 !important;
}

#tariff-results {
  border-radius: 10px;
  padding: 30px;
  background-color: #f2f4f7;
  border: 1px solid #d5d5d5;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#tariff-results .text-muted {
  color: #7a7a7a;
  font-size: 1.1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .contract-length {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  /* Mobile: cap to 3 plans */
  #broadband-results .bb-card:nth-of-type(n + 4) {
    display: none;
  }
}
