/* ==========================================================================
   PaySleep Pricing Component Stylesheet (Bright Light Edition)
   Styling for Interactive Pricing Calculator with All-in-One Package Selector
   ========================================================================== */

.pricing-section {
  background-color: var(--color-white);
  position: relative;
}

/* --------------------------------------------------------------------------
   Interactive Calculator Container (All-in-One Package & Price Result Box)
   -------------------------------------------------------------------------- */
.calculator-box {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-emerald-50) 100%);
  border-radius: var(--radius-3xl);
  padding: 1.5rem;
  color: var(--color-slate-900);
  border: 2.5px solid var(--color-emerald-200);
  box-shadow: var(--shadow-xl);
  max-width: 58rem;
  margin: 0 auto 4rem auto;
}

.calc-header {
  text-align: center;
  margin-bottom: 2rem;
}

.calc-header h3 {
  color: var(--color-slate-900);
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.calc-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Plan Selector Pills inside Calculator */
.calc-plan-selector-container {
  margin-bottom: 2rem;
}

.calc-selector-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-slate-500);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  text-align: center;
  display: block;
}

.calc-plan-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  background: #ffffff;
  padding: 0.5rem;
  border-radius: var(--radius-2xl);
  border: 2px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.plan-select-btn {
  padding: 0.75rem 0.5rem;
  border-radius: var(--radius-xl);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-slate-700);
  border: 2px solid transparent;
  background: var(--color-slate-50);
  transition: all var(--transition-fast);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.plan-select-btn:hover {
  background: var(--color-slate-100);
  border-color: var(--color-slate-300);
}

.plan-select-btn .btn-plan-rate {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Active Selector Button Colors */
.plan-select-btn.active.btn-basic {
  background: var(--color-blue-50);
  border-color: var(--color-blue-500);
  color: var(--color-blue-700);
}

.plan-select-btn.active.btn-silver {
  background: var(--color-teal-50);
  border-color: var(--color-teal-500);
  color: var(--color-teal-700);
}

.plan-select-btn.active.btn-gold {
  background: var(--color-amber-50);
  border-color: var(--color-amber-500);
  color: var(--color-amber-800);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

.plan-select-btn.active.btn-platinum {
  background: var(--color-purple-50);
  border-color: var(--color-purple-500);
  color: var(--color-purple-700);
}

/* Employee Counter Controls & Range Slider */
.employee-counter-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-2xl);
  border: 1.5px solid var(--color-slate-200);
}

.slider-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.employee-slider {
  width: 100%;
  height: 10px;
  border-radius: 5px;
  background: var(--color-slate-200);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

/* WebKit Slider Thumb */
.employee-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-emerald-500);
  cursor: grab;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  border: 3.5px solid #ffffff;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.employee-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  background: var(--color-emerald-600);
}

/* Firefox Slider Thumb */
.employee-slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-emerald-500);
  cursor: grab;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.45);
  border: 3.5px solid #ffffff;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.employee-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  background: var(--color-emerald-600);
}

.employee-input-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-slate-50);
  border: 2px solid var(--color-emerald-300);
  border-radius: var(--radius-xl);
  padding: 0.5rem 1rem;
}

.employee-input-box input {
  width: 4rem;
  background: transparent;
  border: none;
  color: var(--color-slate-900);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
  outline: none;
}

/* Dynamic Price Result Panel inside Calculator */
.calc-result-panel {
  background: #ffffff;
  border: 2px solid var(--color-emerald-300);
  border-radius: var(--radius-2xl);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.25rem;
}

.calc-result-info {
  display: flex;
  flex-direction: column;
}

.calc-result-plan-name {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-emerald-700);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.calc-result-price {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1.1;
}

.calc-result-price.free {
  color: var(--color-emerald-600);
}

.calc-result-breakdown {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.25rem;
}

.calc-result-action {
  shrink: 0;
}

.calc-promo-notice {
  background: #ffffff;
  border: 2px dashed var(--color-emerald-300);
  border-radius: var(--radius-xl);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.925rem;
  color: var(--color-emerald-800);
  font-weight: 600;
}

.calc-promo-icon {
  font-size: 1.35rem;
}

/* --------------------------------------------------------------------------
   Pricing Cards Grid (Side-by-Side Reference Cards)
   -------------------------------------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: #ffffff;
  border: 2px solid var(--color-slate-200);
  border-radius: var(--radius-3xl);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

/* Tier Card Border Variants */
.pricing-card.tier-basic { border-color: var(--color-blue-200); }
.pricing-card.tier-basic:hover { border-color: var(--color-blue-500); }

.pricing-card.tier-silver { border-color: var(--color-teal-200); }
.pricing-card.tier-silver:hover { border-color: var(--color-teal-500); }

.pricing-card.tier-platinum { border-color: var(--color-purple-200); }
.pricing-card.tier-platinum:hover { border-color: var(--color-purple-500); }

/* Featured Card (Gold Plan) */
.pricing-card.featured {
  background: #ffffff;
  border: 2.5px solid var(--color-emerald-500);
  box-shadow: var(--shadow-emerald);
  transform: translateY(-4px);
}

.pricing-card.featured:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -5px rgba(16, 185, 129, 0.35);
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--color-emerald-500) 0%, var(--color-amber-500) 100%);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-slate-900);
  margin-bottom: 0.25rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-height: 2.5rem;
}

.plan-price-box {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-slate-200);
}

.price-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-slate-700);
}

.price-value {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-slate-900);
  line-height: 1;
}

.price-unit {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 0.35rem;
  display: block;
}

.price-calculated-total {
  margin-top: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-emerald-50);
  color: var(--color-emerald-800);
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  border: 1px solid var(--color-emerald-200);
}

.price-calculated-total.free {
  background: var(--color-emerald-500);
  color: #ffffff;
  border: none;
}

.plan-features-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-slate-400);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  flex-grow: 1;
}

.plan-features-list li {
  font-size: 0.875rem;
  color: var(--color-slate-700);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.4;
  font-weight: 600;
}

.plan-features-list li .check-icon {
  color: var(--color-emerald-600);
  font-weight: bold;
  shrink: 0;
}

.plan-features-list li.highlighted-feature {
  font-weight: 800;
  color: var(--color-slate-900);
}

.plan-cta {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Comparison Table Matrix
   -------------------------------------------------------------------------- */
.matrix-container {
  margin-top: 4rem;
  overflow-x: auto;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background: #ffffff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 2px solid var(--color-slate-200);
  box-shadow: var(--shadow-sm);
}

.matrix-table th, 
.matrix-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-slate-200);
  font-size: 0.9rem;
}

.matrix-table th {
  background: var(--color-slate-900);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
}

.matrix-table th:first-child {
  width: 35%;
}

.matrix-table tr:hover td {
  background-color: var(--color-slate-50);
}

.matrix-category {
  background-color: var(--color-slate-100) !important;
  font-weight: 800;
  color: var(--color-slate-900);
  text-transform: uppercase;
  font-size: 0.75rem !important;
  letter-spacing: 0.05em;
}

.text-center {
  text-align: center;
}

.check-green {
  color: var(--color-emerald-600);
  font-weight: bold;
  font-size: 1.1rem;
}

.cross-gray {
  color: var(--color-slate-300);
  font-size: 1.1rem;
}

/* Responsive Pricing */
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .calc-plan-selector {
    grid-template-columns: repeat(2, 1fr);
  }
  .calc-result-panel {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .calc-result-action {
    width: 100%;
  }
  .calc-result-action button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .calculator-box {
    padding: 1.5rem;
  }
  .employee-counter-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
}
