:root {
  --selection-green: #137700;
  --selection-green-bg: #dce9dc;
}
/* Form Debugger */
#json-debugger {
  display: none !important;
}

#quote-form {
  padding-bottom: 120px;
  /* Space for fixed footer */
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.get-instant-quote-form {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  --check-icon-size: 20px;
}

.step-header {
  text-align: center;
  margin-bottom: 40px;
}

.step-header h2 {
  font-size: 1.4rem;
  color: #222;
  margin: 0;
}

.step-header p {
  color: #555;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* --- GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  justify-items: center;
  max-width: 900px;
  margin: auto;
}

/* --- CARD STYLING --- */
.service-card {
  width: 100%;
  border: 2px solid var(--color-content-border);
  border-radius: 10px;
  background: var(--color-content-bg-alt);
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

.service-card input {
  display: none;
}

.card-content {
  padding: 20px 25px;
  height: 100%;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon {
  color: #1b2954;
  font-size: 1.3rem;
}

.check-icon {
  font-size: 1.5rem;
  color: #ccc;
  transition: color 0.3s ease;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0 6px;
  color: #1b2954;
}

.service-card p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 0rem;
}

/* --- Hover + Selected Styles --- */
.service-card:hover {
  border-color: var(--selection-green);
}

.service-card input:checked + .card-content .check-icon {
  color: var(--selection-green);
}

.service-card input:checked + .card-content .check-icon i {
  font-family: "fontawesome";
  font-weight: 900;
  content: "\f058 !important";
  /* solid check-circle */
}

.service-card input:checked + .card-content .check-icon i::before {
  font-family: "fontawesome";
  font-weight: 900;
  content: "\f058";
  /* solid check-circle */
}

.service-card input:checked + .card-content {
  background: var(--selection-green-bg);
  box-shadow: 0 0 0 2px var(--selection-green);
  border-radius: inherit;
}

/* --- Footer --- */
.form-footer {
  margin-top: 40px;
  border-top: 1px solid #eee;
  padding-top: 25px;
  position: fixed;
  bottom: 0;
  width: 100%;
  left: 0;
  background: white;
}

.navigation {
  max-width: 75%;
  margin: auto;
  padding: 2rem;
}

.progress {
  background: #eee;
  height: 6px;
  border-radius: 4px;
  margin-bottom: 25px;
  overflow: hidden;
}

.progress-bar {
  background: #1b2954;
  width: 0%;
  height: 6px;
  transition: width 0.3s ease;
}

.navigation-buttons {
  display: flex;
  justify-content: space-between;
}

.navigation-buttons button {
  background: #1b2954;
  color: #fff;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.9rem;
}

.navigation-buttons .prev-btn {
  background: #ccc;
  color: #333;
  cursor: not-allowed;
}

.navigation-buttons .prev-btn:not(.disabled) {
  background: #999;
  cursor: pointer;
}

@media (max-width: 700px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Contact form final step */
/* Container Card */

/* Labels */
.form-label {
  font-size: 1rem;
  color: #1e3050;
  padding-top: 0.5rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
}

/* Name fields side by side */
.name-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.name-fields input {
  flex: 1;
}

/* Final step */
/* === Final Step Layout === */
.final-step-container {
  text-align: center;
  margin: 40px auto;
  max-width: 1100px;
}

.final-step-container h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}

.final-step-container p {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

/* 70–30 column layout */
.form-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  text-align: left;
  /* Only center the heading, not the fields */
}

.form-container #contact-form {
  flex: 0 0 65%;
}

/* Responsive stack */
@media (max-width: 768px) {
  .form-container {
    flex-direction: column;
  }

  .form-container .form-step,
  .form-container .summary-box {
    flex: 0 0 100%;
  }
}

/* === Form Styles (for consistency) === */
.contact-details-form {
  background-color: #f6f8fb;
  padding: 20px;
  border-radius: 20px;
  box-sizing: border-box;
  border: 2px solid var(--color-content-border);
}

.contact-details-form input:not([type="checkbox"]) {
  background-color: #fff;
  border: 2px solid var(--color-content-border);
  border-radius: 10px;
  padding: 0px 14px;
  width: 100%;
  box-sizing: border-box;
}

.name-fields {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.name-fields input {
  flex: 1;
}

.privacy-policy-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.privacy-policy-field input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border: 2px solid var(--color-content-border);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.2s ease;
  position: relative;
}

.privacy-policy-field input[type="checkbox"]:checked {
  border-color: green;
  box-shadow: 0 0 0 2px rgba(19, 119, 0, 0.15);
}

.privacy-policy-field input[type="checkbox"]:before {
  content: "\f00c";
  font-family: fontawesome;
  font-weight: 900;
  vertical-align: top;
  background: green;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  color: white;
}

.privacy-policy-label {
  font-size: 14px;
  color: #333;
  line-height: 1.4;
}

.privacy-policy-label a {
  color: #0b57d0;
  text-decoration: none;
}

.privacy-policy-label a:hover {
  text-decoration: underline;
}

/* Input focus effect (exclude checkbox) */
.contact-details-form input:not([type="checkbox"]):focus {
  outline: none;
  border-color: #e34960;
  box-shadow: 0 0 0 2px rgba(227, 73, 96, 0.15);
}

/* Remove focus box shadow across inputs/selects */
input:focus,
select:focus,
textarea:focus {
  box-shadow: none !important;
}

/* JSON debugger */
#json-debugger {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px;
  margin-top: 20px;
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  max-width: 800px;
  overflow-x: auto;
}

#json-debugger h3 {
  margin-top: 0;
  color: #4fc3f7;
}

#debug-output {
  white-space: pre;
}

/* Cloud Telephony */
/* === Cloud Telephony Tabs === */
/* --- Buy / Transfer Tabs --- */
.cloud-tabs {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 25px;
}

.cloud-tabs .tab-buttons {
  display: flex;
  gap: 2rem;
  padding: 2px;
  width: 100%;
  max-width: 600px;
}

.tab-btn {
  flex: 1;
  cursor: pointer;
  border: 2px solid var(--color-content-border);
  background: transparent;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
  color: #000000;
  height: 56px;
  border-radius: 0px 20px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-left: 1.5rem;
  padding-right: 2.6rem;
}

.tab-btn:hover {
  background: #eee;
}

.tab-btn.active {
  background: var(--selection-green-bg);
  border-color: var(--selection-green);
  color: var(--selection-green);
}

.tab-btn::before {
  content: "\f111";
  font-family: "fontawesome";
  font-weight: 400;
  font-size: var(--check-icon-size);
  line-height: 1;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #c4c4c4;
  transition: all 0.3s ease;
}

.tab-btn.active::before {
  content: "\f058";
  font-weight: 900;
  color: var(--selection-green);
}

.tab-btn.active:hover {
  background: var(--selection-green-bg);
}

.tab-content.active {
  display: block;
}

#phone-numbers-flow {
  position: relative;
}

#phone-numbers-flow::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 500px;
  background: linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.99) 10%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

#phone-numbers-flow.transfer-active::after {
  display: none;
}

.component-loader {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(2px);
  z-index: 10;
  text-align: center;
  padding: 1.5rem;
}

.component-loader.active {
  display: flex;
}

.component-loader .spinner {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 4px solid #f3f3f3;
  border-top-color: #e34960;
  animation: phonate-spin 0.9s linear infinite;
}

.component-loader .loader-text {
  margin: 0;
  color: #1b2954;
  font-weight: 600;
}

@keyframes phonate-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* Optional polish */
.cloud-tabs h3 {
  margin-top: 0;
}

.tab-content p {
  margin-bottom: 15px;
}

.tab-content label {
  display: block;
  font-weight: 500;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-row div {
  flex: 1;
}

/* --- Buy Number Dropdowns --- */
#buy-number .form-group label {
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

#buy-number select.form-control {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid var(--color-content-border);
  border-radius: 6px;
  background: #fff;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

#buy-number select.form-control:focus {
  border-color: #e64a19;
  outline: none;
}

/* --- Number Quality Tabs --- */
.number-quality-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1rem 0;
}

.quality-option {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #444;
  font-weight: 500;
}

.quality-option input[type="radio"] {
  accent-color: #e64a19;
  transform: scale(1.2);
}

/* --- Number List (Buy Number Step) --- */
/* === Desktop Scroll for Buy Number List === */
.number-list {
  max-height: 450px;
  overflow-y: auto;
  position: relative;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-right: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  padding-bottom: 1rem;
}

/* Subtle custom scrollbar */
.number-list::-webkit-scrollbar {
  width: 8px;
}

.number-list::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.number-list::-webkit-scrollbar-thumb {
  background: #e34960;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.number-list::-webkit-scrollbar-thumb:hover {
  background: #c63b51;
}

/* --- Number Row (Updated for pill style) --- */
.number-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 2px solid var(--color-content-border);
  border-radius: 20px;
  padding: 0.85rem 1.25rem;
  transition: all 0.25s ease;
  cursor: pointer;
  /* ✅ Remove margin-bottom since grid gap handles spacing */
  margin-bottom: 0;
}

.number-row:hover {
  border-color: var(--selection-green);
}

.number-row.selected {
  border-color: var(--selection-green, #137700);
  background: var(--selection-green-bg, #1377001f);
}

.number-row label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

/* Text + price */
.number-row .number-text {
  font-size: 1rem;
  color: #222;
  font-weight: 500;
}

.number-row .number-price {
  font-size: 1rem;
  font-weight: 600;
  color: #1b1b1b;
  margin-right: 8px;
}

/* --- Number Row Check Icon Style --- */
.number-row input[type="checkbox"] {
  appearance: none;
  width: 22px;
  height: 22px;
  border: 1.8px solid #c2c7d0;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* Default hover */
.number-row input[type="checkbox"]:hover {
  border-color: #e64a19;
}

/* Checked State with Icon */
.number-row input[type="checkbox"]:checked {
  border-color: var(--selection-green);
  background-color: var(--selection-green);
  color: #fff;
}

/* ✅ Optional: make it 1 column on small screens */
@media (max-width: 768px) {
  #number-list {
    grid-template-columns: 1fr;
  }
}

/* --- Buy Number Step Headings --- */
#buy-number .step-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1b2954;
  margin-bottom: 5px;
}

#buy-number .step-subtext {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Selected Numbers list for BUYING NUMBERS */

/* === Buy Number: Selected Numbers Summary (isolated) === */
.buy-number-summary {
  background: #f9f9fb;
  border: 2px solid var(--color-content-border);
  border-radius: 12px;
  padding: 15px 20px;
  max-width: 800px;
  margin: 1rem auto 1.5rem;
}

.buy-number-summary h4 {
  font-size: 1.1rem;
  color: #1e3050;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.buy-number-summary .buy-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.buy-number-summary .buy-number-badge {
  display: inline-flex;
  align-items: center;
  background: #e34960;
  color: #fff;
  border-radius: 25px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 6px;
}

.buy-number-summary .remove-buy-number-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.buy-number-summary .remove-buy-number-btn:hover {
  opacity: 0.75;
}

.buy-number-summary .buy-number-total {
  font-size: 1rem;
  color: #1e3050;
  margin-top: 10px;
  text-align: right;
  font-weight: 600;
}

.buy-number-summary .buy-number-total span {
  color: #e34960;
  font-weight: 700;
}

/* --- General Step Spacing --- */
.tab-content {
  background: var(--color-content-bg-alt);
  padding: 30px;
  border: 2px solid var(--color-content-border);
  border-radius: 20px;
  display: none;
}

.number-selection {
  margin-top: 25px;
}

/* Cloud Telephony Plans Step */
.plan-box {
  background: var(--color-content-bg-alt);
  padding: 2rem;
  border: 2px solid var(--color-content-border);
  border-radius: 0px 40px 0px 40px;
}

.plan-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.plan-card {
  flex: 1 1 30%;
  border: 2px solid var(--color-content-border);
  border-radius: 20px;
  padding: 1.5rem;
  cursor: pointer;
  transition: 0.2s ease;
  background: #fff;
}

.plan-card:hover,
.plan-card input:checked + .plan-header,
.plan-card input:checked {
  border-color: var(--selection-green);
  box-shadow: 0 0 0 2px var(--selection-green-bg);
}

.fa-check-circle:before {
  content: "\f058";
  color: green;
  font-size: var(--check-icon-size);
}

/* //plan header// */

.plan-header-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.plan-price {
  order: 1;
}

.plan-check {
  order: 2;
}

.plan-extra-user-note {
  order: 3;
  width: 100%;
  align-self: flex-start;
  font-size: 0.8rem;
  color: #666;
  margin: 6px 0 0;
}

.plan-price {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1e3050;
}

/* .plan-price h3 {
	margin: 0;
	font-size: 24px !important;
	font-weight: 700 !important;
	color: #1E3050;
} */

.plan-price span {
  font-size: 16px;
  color: #3b3b3b;
  margin-left: 4px;
}

.plan-mins {
  margin-top: 8px;
  border: 2px solid #d0d7e2;
  border-radius: 6px;
  padding: 8px;
  text-align: center;
  color: #1b2b47;
  font-size: 14px;
  font-weight: 500;
  width: 100%;
}

/*//plan header// */
/* .plan-card h3 {
	font-weight: 600;
	margin-bottom: .5rem;
	display:flex;
	text-align: center;
} */

.plan-features {
  list-style: none;
  margin: 0;
  padding: 0;
}

.plan-features li {
  font-size: 0.9rem;
  color: #333;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.provider-select {
  display: flex;
}

.phonate-brand-card img {
  max-height: 40px;
  max-width: 40px !important;
  width: auto;
  display: block;
}

.provider-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--color-content-border);
  border-radius: 20px;
  margin-right: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.provider-card.active {
  border-color: var(--selection-green);
  background: var(--selection-green-bg);
}

.provider-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.provider-card img {
  max-height: 40px;
  width: auto;
  display: block;
}

.provider-card .coming-soon {
  font-weight: 700;
  color: #444;
  white-space: nowrap;
}

.provider-card.phonate-brand-card {
  gap: 12px;
}

.plan-summary {
  max-width: fit-content;
  margin-left: auto;
  padding: 1rem;
  font-size: 1.1rem;
  align-items: flex-end;
  text-align: right;
}

#planTotal {
  font-size: 24px;
  color: #1e3050;
  font-weight: 600;
}

.plan-summary p {
  margin-bottom: 0.2rem !important;
}

.comparison-link {
  margin-top: 12px;
  margin-left: 12px;
}

.comparison-btn {
  background: none;
  border: none;
  color: #e34960;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.comparison-btn:hover,
.comparison-btn:focus {
  color: #c63b51;
}

/* Hide native radio */
.plan-check input[type="radio"] {
  display: none;
}

/* When selected */
.plan-check input[type="radio"]:checked + .checkmark {
  background-color: #1b2b47;
  /* navy color like screenshot */
}

.plan-check input[type="radio"]:checked + .checkmark::after {
  display: block;
}

.plan-card {
  cursor: pointer;
  transition: all 0.25s ease;
}

.plan-card.selected {
  border: 2px solid var(--selection-green);
  background-color: var(--selection-green-bg);
  box-shadow: 0 0 10px rgba(19, 119, 0, 0.15);
}

.plan-card .check-icon i {
  font-size: var(--check-icon-size);
  color: #c4c4c4;
  transition: color 0.2s ease;
}

.plan-card.selected .check-icon i.fa-check-circle {
  color: var(--selection-green);
}

.plan-card .check-icon {
  font-size: 1.5rem;
  color: #ccc;
  transition: color 0.3s ease;
  position: absolute;
  top: 0rem;
  right: 0rem;
}

.plan-card .fa-circle:before {
  content: "\f111";
}

.plan-check {
  width: 25px;
  height: 25px;
  position: relative;
}

/* === Transfer Number Section === */
.transfer-section {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 0 2.5rem;
}

/* Section Heading */
#transfer-number h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1e3050;
  margin-bottom: 0.4rem;
}

#transfer-number p {
  color: #555;
  font-size: 0.95rem;
}

/* --- Input Row --- */
.transfer-section .input-row {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0;
}

.transfer-section .transfer-input {
  flex: 1;
  max-width: 600px;
  border: 2px solid var(--color-content-border);
  border-right: none;
  background: white;
  border-radius: 10px 0 0 10px;
  font-size: 1rem;
  color: #333;
  transition: all 0.2s ease;
}

.transfer-section .transfer-input:focus {
  outline: none;
  background: #fff;
  border-color: #e34960;
  box-shadow: 0 0 0 2px rgba(227, 73, 96, 0.15);
}

/* --- Add Number Button --- */
.transfer-section .add-number-btn {
  border: 1px solid #e34960;
  background: #e34960;
  color: #fff;
  font-weight: 500;
  border-radius: 0 8px 8px 0;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.transfer-section .add-number-btn:hover {
  background: #d13b51;
}

/* --- Add Another Field Button --- */
.transfer-section .add-field-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid var(--color-content-border);
  background: #fff;
  color: #1e3050;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 18px;
  margin: 10px 0 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.transfer-section .add-field-btn i {
  color: #1e3050;
  font-size: 0.9rem;
}

.transfer-section .add-field-btn:hover {
  background: #f3f5f8;
}

/* --- Selected Numbers Container for transfer --- */
.selected-numbers-container {
  text-align: left;
  max-width: 700px;
  margin: 2rem auto 1.5rem;
}

.selected-numbers-container h6 {
  font-weight: 600;
  color: #1e3050;
  margin-bottom: 0.8rem;
}

.selected-numbers-list {
  background: white;
  border: 2px solid var(--color-content-border);
  border-radius: 20px;
  padding: 1.2rem;
  min-height: 65px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* --- No numbers added message --- */
.selected-numbers-list p.text-muted {
  color: #888;
  font-style: italic;
  margin: 0;
  flex: 1;
}

/* --- Number Pills --- */
.selected-numbers-list .number-badge {
  display: inline-flex;
  align-items: center;
  background: #e34960;
  color: #fff;
  border-radius: 25px;
  padding: 6px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  gap: 6px;
}

.selected-numbers-list .remove-btn {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.selected-numbers-list .remove-btn:hover {
  opacity: 0.75;
}

/* --- Total Cost Display --- */
.total-cost-display {
  text-align: right;
  font-weight: 600;
  color: #1e3050;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.total-cost-display span {
  font-weight: 700;
  color: #e34960;
}

/* Cloud Telephony Number Slider */
.range-wrapper {
  position: relative;
  width: 100%;
  margin: 1rem 0 4rem 0;
}

.team-size-label {
  display: block;
  margin-bottom: 1rem;
}

.range-container {
  position: relative;
  width: 100%;
}

#teamRange,
#phoneTeamRange {
  width: 100%;
  -webkit-appearance: none;
  background: transparent;
}

#teamRange::-webkit-slider-runnable-track,
#phoneTeamRange::-webkit-slider-runnable-track {
  height: 6px;
  background: #ddd;
  border-radius: 6px;
}

#teamRange::-webkit-slider-thumb,
#phoneTeamRange::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  background: var(--color-content-primary);
  border-radius: 50%;
  cursor: pointer;
  margin-top: -6px;
}

#teamRange::-moz-range-thumb,
#phoneTeamRange::-moz-range-thumb {
  height: 18px;
  width: 18px;
  background: var(--color-content-primary);
  border-radius: 50%;
  cursor: pointer;
}

#teamRangeOutput,
#phoneTeamRangeOutput {
  position: absolute;
  top: 15px;
  /* moves bubble below the slider */
  left: 0;
  transform: translateX(-50%);
  background: var(--color-content-primary);
  color: #fff;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: none;
  transition: left 0.1s linear;
}

/* ==========================
   BUSINESS SIMS FLOW STYLES
========================== */
#business-sims-flow .broadband-providers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
}

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

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

#business-sims-flow .contract-length label {
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}

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

/* --- Data Only Checkbox --- */
#business-sims-flow #data_only_checkbox {
  accent-color: #1e3050;
  transform: scale(1.1);
  margin-right: 6px;
}

/* --- Tariff Results --- */
#business-sims-flow #tariff-results {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

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

#business-sims-flow .choose-plan-btn {
  width: 100%;
}

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

  .plan-box {
    padding: 0.5rem;
  }

  .plan-cards {
    flex-direction: column;
  }

  #business-sims-flow .tariff-benefits-wrapper,
  #business-sims-flow .tariff-benefits-wrapper ul {
    margin-left: 0;
  }
}

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

#broadband-flow .contract-length {
  text-align: center;
  margin-bottom: 2rem;
}

#broadband-flow .contract-length label {
  margin-right: 0.5rem;
}

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

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

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

/* New card css */

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

a {
  text-decoration: none !important;
}

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

/* New broadband card */
.bb-card {
  position: relative;
  background: var(--color-content-bg-alt);
  border: 2px solid var(--color-content-border);
  border-radius: 12px;
  padding: 1.5rem;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  display: block;
  cursor: pointer;
  text-align: center;
}

.bb-card.selected {
  border-color: var(--selection-green, #137700);
  background: var(--selection-green-bg, #1377001f);
}

.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: 2px 10px;
  border-radius: 12px;
  border: 2px solid var(--color-content-border);
  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;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid #162644;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2 !important;
  font-weight: 500;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0em;
  border-radius: 0px 20px 20px 20px;
  padding: 0.9em 1.8em;
  background: var(--color-header-middle-text-hover);
  border-color: transparent;
  color: var(--color-header-middle-bg) !important;
  width: 145px;
}

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

.bb-select-selected {
  display: inline-block;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid #162644;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
  font-size: 16px;
  line-height: 1.2 !important;
  font-weight: 500;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0em;
  border-radius: 0px 20px 20px 20px;
  padding: 0.9em 1.8em;
  background: var(--color-brand-red);
  border-color: transparent;
  color: var(--color-header-middle-bg) !important;
  width: 145px;
}

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

#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;
  }
}

/* ==========================
   UNIVERSAL MODAL STYLES
========================== */

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
  opacity: 1;
}

.custom-modal {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.custom-modal.comparison-modal {
  max-width: 1100px;
  width: 95%;
  text-align: left;
}

.custom-modal.comparison-modal .modal-icon {
  display: none;
}

.custom-modal.comparison-modal .modal-title {
  text-align: left;
}

.custom-modal.comparison-modal .modal-message {
  max-height: 70vh;
  overflow: auto;
}

.custom-modal-overlay.active .custom-modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.modal-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.modal-title {
  margin-bottom: 10px;
  font-weight: 600;
}

.modal-message {
  font-size: 15px;
  color: #444;
}

.modal-ok-btn {
  margin-top: 20px;
  background: #e34960;
  /* ✅ FroHub primary color */
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}

.modal-ok-btn:hover {
  background: #c63b51;
}

/* Color variants for icons/titles */
.custom-modal.info .modal-icon {
  color: #3498db;
}

.custom-modal.success .modal-icon {
  color: #27ae60;
}

.custom-modal.warning .modal-icon {
  color: #f39c12;
}

.custom-modal.error .modal-icon {
  color: #e74c3c;
}

/* ==============
Summary Box Styles 
================ */
.summary-box {
  background: #f6f8fb;
  border: 2px solid var(--color-content-border);
  border-radius: 20px;
  padding: 20px;
  font-size: 0.95rem;
  color: #1e3050;
  width: 100%;
}

.summary-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #e34960;
}

.summary-box h4 {
  font-size: 1rem;
  color: #1e3050;
  padding-top: 0.5rem;
}

.summary-box ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.5rem 0;
}

.summary-box ul li {
  margin-bottom: 4px;
}

.summary-box p {
  margin: 0.3rem 0;
}

.summary-box hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1rem 0;
}

/* ✅ Shared summary list styling (works for Cloud + Phone flows) */
.summary-number-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.summary-number-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid #eee;
}

.summary-number-list li:last-child {
  border-bottom: none;
}

/* ❌ Remove button styling */
.remove-summary-phone-number-btn,
.remove-summary-number-btn {
  background: none;
  border: none;
  color: #e34960;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  margin-left: 8px;
}

.remove-summary-phone-number-btn i,
.remove-summary-number-btn i {
  pointer-events: none;
}

/*=======================
 OLD CSS
====================== */
.data-only-container {
  margin-bottom: 0.5rem;
}

/*Tariffs*/
li {
  margin: 0 0 0 0rem;
}

.tariff-title {
  margin-top: 0 !important;
  /*margin-bottom: -15px !important;*/
  /*padding:0 !important;*/
}

.tariff-badges {
  position: absolute;
  top: 0px;
  right: -1px;
}

.tariff-badge {
  background-color: #0a2a5a;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 0px 20px 0px 15px;
  display: inline-block;
}

.promo-badges {
  margin: 10px 0 8px;
  text-align: center;
}

.promo-badge {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 14px;
  background: #0a2a5a;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.promo-badge__original {
  text-decoration: line-through;
  opacity: 0.8;
  font-weight: 500;
}

.tariff-logo {
  max-width: fit-content !important;
  float: left;
  margin-right: 15px;
  padding: 0.6rem 0.75rem;
  border-radius: 0rem 30px 20px 20px;
  background: #fff;
}

.tariff-logo img {
  border-radius: 15px;
  object-fit: contain;
}

.tariff-values {
  max-width: 120px !important;
}

/* Benefits styling (bottom list) */
.tariff-benefits {
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tariff-benefits li {
  color: #007916;
  font-weight: 500;
  border: 2px solid #007916;
  border-radius: 10px;
  padding: 5px 10px;
  font-size: 14px;
  background: #55c4694a;
}

/*----logo css----*/
.oo2 {
  margin-top: -500px;
  margin-left: 100px;
}

/*----Tariff Card-------*/
.tariff-card .benefits ul {
  margin: 0;
  padding-left: 20px;
}

.tariff-card .benefits li {
  list-style-type: disc;
  font-size: 14px;
  margin-bottom: 5px;
}

.network-btn {
  border: 2px solid var(--color-content-border);
  border-radius: 4px;
  background: none;
  cursor: pointer;
  padding: 10px;
  width: 100px;
  margin-right: 30px;
}

.network-btn.active {
  outline: 2px solid #007bff;
  border-radius: 3px;
}

.contract-length-filter {
  margin-bottom: 50px;
  margin-top: 20px;
}

.contract-length-filter h4 {
  margin-top: 50px;
}

/*Network Tariffs CSS*/
.network-provider-filters label {
  margin-right: 20px;
  display: inline-block;
  cursor: pointer;
}

.network-provider-filters input[type="radio"] {
  display: none;
}

.network-provider-filters img {
  border: 2px solid transparent;
  padding: 0px;
}

/* ---------- */
.loading-spinner-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #f2f4f7;
  border-radius: 10px;
  font-size: 1.2em;
  color: #1d2a39;
  border: 2px solid var(--color-content-border);
  height: 174px;
}

/*--------------*/

.tariff-card {
  border: 2px solid var(--color-content-border);
  padding: 30px;
  margin-bottom: 50px;
  border-radius: 0px 20px 20px 20px;
  background: var(--color-content-bg-alt);
  position: relative;
  width: 100%;
}

.tariff-card.selected {
  border: 2px solid var(--selection-green, #137700) !important;
  background: var(--selection-green-bg, #1377001f);
}

.tariff-card-components {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

/*.tariff-title{*/
/*    margin-bottom: -10px;*/
/*}*/
.choose-plan {
  background: #1e3050;
  padding: 10px 20px;
  border-radius: 0px 20px 20px 20px;
  color: #ffff;
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
  margin-top: 10px;
}

.highlight {
  background: #ff5e00;
  color: #fff;
  padding: 3px 8px;
  display: inline-block;
  border-radius: 3px;
}

.tariff-price {
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.provider-card img {
  width: 150px;
  margin-top: 10px;
}

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

.border_button {
  background: #e34960;
  border: 2px solid #e34960;
  border-radius: 0px 20px 20px 20px;
  font-size: 16px;
  color: white;
  font-weight: 500;
  padding: 12px 40px;
  margin-top: 15px;
  text-align: center;
}

.slider.round:before {
  border-radius: 50%;
}

/*--------*/

/* Toggle switch container */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

/* Hide default checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* Slider background */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

/* Rounded slider */
.slider.round {
  border-radius: 34px;
}

.slider.round::before {
  border-radius: 50%;
}

/* Slider circle */
.slider::before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
}

/* Checked background */
.switch input:checked + .slider {
  background-color: #2196f3;
}

/* Move the circle when checked */
.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.w-popup-closer {
  margin-top: 25px;
  font-size: 1.2rem;
}

.w-popup-box-content {
  border: 2px solid var(--color-content-border);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.w-popup-overlay {
  background: rgb(255 255 255 / 85%) !important;
  backdrop-filter: blur(4px) !important;
}

/*benifit aligend*/
.tariff-card-components > div,
.tariff-card-components > ul.benefits {
  flex: 1 1 120px;
  /* min width */
  max-width: 180px;
  box-sizing: border-box;
}

.tariff-card-components > ul.benefits {
  flex: 1 1 120px;
  /* min width */
  max-width: 250px;
  box-sizing: border-box;
}

.benefits {
  list-style: disc inside;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.benefits li {
  margin-bottom: 5px;
  line-height: 1.4;
}

/*-------tab style---------*/

.dynamic-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 1;
  transition: opacity 0.6s ease-in-out;
}

@media screen and (min-width: 1201px) {
  .tariff-benefits-wrapper {
    margin-left: 8rem;
  }
}

@media screen and (max-width: 1200px) and (min-width: 769px) {
  .tariff-benefits-wrapper {
    margin-left: 7rem;
  }
}

@media screen and (max-width: 768px) and (min-width: 601px) {
  .tariff-benefits-wrapper {
    margin-left: 6rem;
  }
}

@media only screen and (max-width: 600px) {
  .tariff-card-components {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .tariff-title {
    margin-bottom: 17px;
  }

  .contract-length-filter {
    display: flex;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 30px;
  }

  .tariff-card-components > div,
  .tariff-card-components > ul.benefits {
    flex: 1 1 20px;
    /* min width */
    box-sizing: border-box;
  }

  .tariff-card-components > ul.benefits {
    flex: 1 1 20px;
    /* min width */
    max-width: 400px;
    box-sizing: border-box;
  }

  .tariff-price {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .Operators {
    margin-top: -400px;
    margin-left: -200px;
  }
}

/* ==============
Mobil Optimisation Styles 
================ */
@media (max-width: 600px) {
  /* Form footer */
  .form-footer {
    margin-top: unset;
    border-top: 1px solid #eee;
    padding-top: unset;
    position: fixed;
    bottom: 0;
    width: 100%;
    left: 0;
    background: white;
  }

  .navigation {
    max-width: 100%;
    margin: auto;
    padding: 1rem;
  }

  /* Tab content */
  .tab-btn {
    flex: none !important;
  }

  .cloud-tabs .tab-buttons {
    display: flex;
    gap: 1rem !important;
    flex-direction: column !important;
    margin-left: 0 !important;
  }

  /* Reduce padding inside tab content */
  .tab-content {
    padding: 15px;
  }

  /* Adjust section spacing for tighter layout */
  #buy-number .step-heading {
    text-align: center;
  }

  #buy-number .step-subtext {
    text-align: center;
    font-size: 0.85rem;
  }

  /* Transfer number tab */
  #transfer-number {
    text-align: center;
  }

  /* Dropdowns full width and spaced */
  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  #buy-number select.form-control {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  /* Center quality tabs vertically */
  .number-quality-tabs {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }

  .number-quality-tabs label {
    font-size: 0.9rem;
  }

  #readonly-number-list {
    max-height: 250px;
    /* set a smaller scroll area on mobile */
    overflow-y: auto;
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-right: 1rem;
    overflow: hidden;
    overflow-x: scroll;
  }

  /* Add visual gradient fades to hint scrolling */
  /* #readonly-number-list::before,
  #readonly-number-list::after {
    content: "";
    position: sticky;
    left: 0;
    right: 0;
    height: 25px;
    pointer-events: none;
    z-index: 2;
  } */

  /* Fade at top */
  #readonly-number-list::before {
    top: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0)
    );
  }

  /* Fade at bottom */
  #readonly-number-list::after {
    bottom: 0;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0)
    );
  }

  /* Optional: thinner custom scrollbar */
  #readonly-number-list::-webkit-scrollbar {
    width: 6px;
  }

  #readonly-number-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
  }

  #readonly-number-list::-webkit-scrollbar-thumb {
    background: #e34960;
    border-radius: 10px;
  }

  /* Slight padding for touch comfort */
  .number-row {
    padding: 0.8rem 1rem;
  }

  .cta-container .w-btn {
    width: 100%;
  }
}
