/* ==========================================================================
   KRS Infotech - CRM Pricing Page Stylesheet
   Designed to match the exact mockup layout pixel-perfectly.
   ========================================================================== */

:root {
  --primary-red: #e6004c;
  --primary-red-hover: #d00042;
  --primary-red-light: #fff1f3;
  --primary-red-border: #fecdd3;
  --red-accent: #ef233c;
  --text-dark: #0f172a;
  --text-slate: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --border-light: #eef2f6;
  --border-subtle: #f1f5f9;
  --success-green: #10b981;
  --danger-red: #ef4444;
  --blue-badge: #2563eb;
  --blue-badge-bg: #e0f2fe;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.08);
  --shadow-popular: 0 16px 40px -10px rgba(230, 0, 76, 0.22);
}





/* ==========================================================================
   PRICING MAIN SECTION
   ========================================================================== */
.pricing-section {
  padding: 55px 0;
  position: relative;
  background: radial-gradient(ellipse 90% 55% at 50% 12%, rgba(254, 205, 211, 0.45) 0%, rgba(240, 249, 255, 0.35) 45%, #ffffff 80%);
}

/* Header & Currency Switcher Row */
.pricing-header-wrap {
  position: relative;
  margin-bottom: 44px;
}
.pricing-header-wrap.website-price-header{
  margin-bottom: 60px
}
.pricing-header-wrap.website-price-header .section-title{
      max-width: 770px;
    display: block;
    margin: auto;
    font-size: 2.25rem;
    line-height: 1.35;
}
.pricing-header-krs {
  text-align: center;
}

.section-badge-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom:15px;
}

.badge-line {
  width: 32px;
  height: 2px;
  background: #ef233c;
  border-radius: 2px;
}

.badge-text {
  font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.75px;
}

.section-title {
 font-size: 2.35rem;
    font-weight: 750;
    color: #0b1a30;
    /* letter-spacing: -0.025em; */
    margin-bottom: 8px;
    line-height: 1.25;
}

.section-title .highlight {
  color: #ef233c;
}

.section-subtitle {
  font-size: 1rem;
  color: #5a6b82;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 65px;
}

/* Currency Picker Top Right */
.currency-selector-pos {
  position: absolute;
  top: 12px;
  right: 0;
}

.currency-dropdown {
  position: relative;
  display: inline-block;
}

.currency-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.86rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 9px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.currency-btn:hover {
  border-color: #ef233c;
  box-shadow: 0 6px 18px rgba(239, 35, 60, 0.15);
  transform: translateY(-1px);
}

.currency-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.currency-btn i {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  padding: 8px;
  display: none;
  z-index: 50;
  list-style: none;
}

.currency-menu.show {
  display: block;
}

.currency-option {
  padding: 9px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s ease;
}

.currency-option:hover {
  background: #f1f5f9;
}

.currency-option.selected {
  background: #fff1f3;
  color: var(--primary-red);
  font-weight: 700;
}

/* ==========================================================================
   PRICING CARDS
   ========================================================================== */
.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 10px;
  margin-bottom: 50px;
  align-items: stretch;
}

.pricing-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgb(90 92 109 / 35%);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.04), 0 0 1px 1px rgba(15, 23, 42, 0.02);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.1);
  border-color: #ef233c;
}

/* Most Popular Card Styling */
.pricing-card.popular {
  border: 2px solid #ef233c;
  box-shadow: 0 0 35px rgba(239, 35, 60, 0.2), 0 16px 40px -10px rgba(239, 35, 60, 0.16);
  position: relative;
  transform: translateY(-9px);
}

.pricing-card.popular:hover {
  transform: translateY(-15px);
  box-shadow: 0 0 48px rgba(239, 35, 60, 0.32), 0 22px 50px -8px rgba(239, 35, 60, 0.24);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ef233c 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 22px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(239, 35, 60, 0.4);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff0f3;
  color: #ef233c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 0 22px rgba(239, 35, 60, 0.2);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.pricing-card:hover .card-icon {
  transform: scale(1.06);
}

.card-icon.popular {
  background: linear-gradient(135deg, #ef233c 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(239, 35, 60, 0.45);
}

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.card-title {
      font-size: 1.22rem;
    font-weight: 800;
    color: #0b1a30
}

.customization-pill {
  display: inline-block;
  align-self: flex-start;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
}

.flag-img{
  width: 25px;
  height: 25px;
  object-fit:cover;
  border-radius:50%;
}

/* Pricing block */
.price-box {
  margin-bottom: 10px;
}

.price-main {
    font-size: 20px;
    font-weight: 700;
    color: #0b1a30;
    /* letter-spacing: -0.025em; */
    line-height: 1.2;
}

.price-gst {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ef233c;
  margin-top: 4px;
}

/* Meta Features (Unlimited Users | Single/Unlimited Branch) */
.card-meta-row {
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.meta-item i {
  color: #ef233c;
  font-size: 0.95rem;
}

/* Maintenance row */
.maintenance-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 15px;
}

.m-icon {
  color: #ef233c;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.m-text-group {
  display: flex;
  flex-direction: column;
}

.m-label {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.m-price {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0b1a30;
}

/* Buttons */
.card-action {
  margin-top: auto;
}

.btn-card {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
}

.btn-card.btn-outline {
  background: #ffffff;
  color: #ef233c;
  border: 1.8px solid #ef233c;
}

.btn-card.btn-outline:hover {
  background: #ef233c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(239, 35, 60, 0.25);
}

.btn-card.btn-solid {
  background: linear-gradient(135deg, #ef233c 0%, #dc2626 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 22px rgba(239, 35, 60, 0.35);
}

.btn-card.btn-solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(239, 35, 60, 0.45);
  filter: brightness(1.05);
}

/* ==========================================================================
   FEATURE COMPARISON TABLE
   ========================================================================== */
.table-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1.5px solid #edf2f7;
  box-shadow: 0 15px 45px -10px rgba(15, 23, 42, 0.05), 0 0 1px 1px rgba(15, 23, 42, 0.02);
  overflow: hidden;
  margin-top: 55px;
}

.matrix-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  text-align: left;
}

.matrix-table th,
.matrix-table td {
  padding: 14px 24px;
  font-size: 0.88rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

/* Column Widths */
.col-feature {
  width: 25%;
}

.col-basic {
  width: 20%;
  text-align: center;
}

.col-standard {
  width: 20%;
  text-align: center;
  background-color: #fffbfa;
  border-left: 1.5px solid #fed7df;
  border-right: 1.5px solid #fed7df;
}

.col-customized {
  width: 20%;
  text-align: center;
}

/* Header Row Styling */
.matrix-table thead tr th {
  background: #ffffff;
  font-weight: 700;
  color: #0b1a30;
  font-size: 1.02rem;
  padding: 20px 24px;
  border-bottom: 1.5px solid #e2e8f0;
}

.matrix-table thead th.col-feature {
  background: #fff1f3;
  color: #e11d48;
  font-size: 1rem;
  font-weight: 800;
  border-bottom: 1.5px solid #fecdd3;
}

.feature-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feature-header-icon {
  width: 34px;
  height: 34px;
  background: #ffe4e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ef233c;
  font-size: 0.95rem;
  box-shadow: 0 0 12px rgba(239, 35, 60, 0.2);
  flex-shrink: 0;
}

.matrix-table thead th.col-standard {
  background: #fff3f5;
  border-left: 1.5px solid #fed7df;
  border-right: 1.5px solid #fed7df;
  border-bottom: 1.5px solid #fed7df;
  position: relative;
}

.standard-header-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0b1a30;
}

.standard-header-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ef233c 0%, #dc2626 100%);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(239, 35, 60, 0.35);
}

/* Row Hover & Alternating Highlight */
.matrix-table tbody tr:hover td {
  background-color: #f8fafc;
}

.matrix-table tbody tr:hover td.col-standard {
  background-color: #fff0f3;
}

.feat-cell {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  color: #334155;
  font-size: 0.88rem;
}

.feat-icon-wrap {
     width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #fff0f3;
    color: #ef233c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 0 10px rgba(239, 35, 60, 0.12);
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.matrix-table tbody tr:hover .feat-icon-wrap {
  transform: scale(1.1);
  box-shadow: 0 0 14px rgba(239, 35, 60, 0.25);
}

/* Check, Cross & Pill Indicators */
.status-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-check {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #139935;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.3);
    transition: transform 0.2s ease;
}

.matrix-table tbody tr:hover .icon-check {
  transform: scale(1.12);
}

.icon-cross {
  width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e1262c;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.3);
    transition: transform 0.2s ease;
}

.matrix-table tbody tr:hover .icon-cross {
  transform: scale(1.12);
}

.text-with-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #334155;
}

.badge-addons {
  display: inline-block;
  background: #dbeafe;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.16);
  transition: all 0.2s ease;
}

.matrix-table tbody tr:hover .badge-addons {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Remove bottom border on last row */
.matrix-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   WHY CHOOSE SECTION
   ========================================================================== */
.why-section {
  padding: 45px 0;
  background: radial-gradient(circle at 10% 70%, rgba(254, 205, 211, 0.45) 0%, transparent 45%),
              radial-gradient(circle at 90% 70%, rgba(224, 242, 254, 0.5) 0%, transparent 50%),
              #ffffff;
}

.why-header {
  text-align: center;
  margin-bottom: 30px;
}

.why-grid {
      display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    align-items: stretch;
}
.why-section .section-subtitle{
  margin-bottom: 0;
}
.why-card-krs {
    background: #ffffff;
    border-radius: 10px;
    border: 1.5px solid #edf2f7;
    padding: 12px 13px;
    box-shadow: 0 6px 5px -5px rgba(15, 23, 42, 0.04), 0 0 1px 1px rgba(15, 23, 42, 0.02);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: row;
    /* align-items: center; */
    gap: 10px;
}

.why-card-krs:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -8px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
}

.why-icon {
      width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.why-card:hover .why-icon {
  transform: scale(1.1);
}

.why-icon.bg-red {
  background: linear-gradient(135deg, #ef233c 0%, #dc2626 100%);
    box-shadow: 0 0 8px rgb(239 35 60 / 30%);
}

.why-icon.bg-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.30);
}

.why-icon.bg-crimson {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.30);
}

.why-icon.bg-sky {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.30);
}

.why-icon.bg-pink {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.30);
}

.why-content {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.why-title {
     font-size: 15px;
    font-weight: 700;
    color: #0b1a30;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}

.why-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
  font-weight: 500;
  margin-bottom: 0rem;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 40px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .currency-selector-pos {
    position: static;
    margin-top: 16px;
    display: flex;
    justify-content: center;
  }
  .table-card {
    overflow-x: auto;
  }
  .matrix-table {
    min-width: 650px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   SELECT2 CURRENCY DROPDOWN STYLING
   ========================================================================== */
.currency-selector-pos {
  z-index: 10;
}

.currency-selector-pos .crrncy_slct {
  display: inline-block;
  position: relative;
}

.currency-selector-pos .select2-container {
  vertical-align: middle;
}

.currency-selector-pos .select2-container--default .select2-selection--single {
  background-color: #ffffff;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 9999px !important;
  height: 44px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  display: flex !important;
  align-items: center;
}

.currency-selector-pos .select2-container--default .select2-selection--single:hover,
.currency-selector-pos .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #ef233c !important;
  box-shadow: 0 6px 18px rgba(239, 35, 60, 0.15);
}

.currency-selector-pos .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 42px !important;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1e293b;
  padding-left: 14px !important;
  padding-right: 36px !important;
  display: inline-flex !important;
  align-items: center;
}

.currency-selector-pos .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  right: 12px !important;
  top: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.currency-selector-pos .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #64748b transparent transparent transparent !important;
  border-width: 5px 4px 0 4px !important;
}

.currency-selector-pos .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent #64748b transparent !important;
  border-width: 0 4px 5px 4px !important;
}

.select2-results__option img,
.select2-selection__rendered img {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  vertical-align: middle !important;
  margin-right: 9px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15) !important;
  display: inline-block !important;
}

.select2-dropdown {
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  overflow: hidden !important;
  background: #ffffff !important;
  z-index: 99999 !important;
}

.select2-results__option {
  padding: 8px 14px !important;
  font-size: 0.86rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.15s ease !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #ef233c !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option--selected {
  background-color: #fff1f3 !important;
  color: #ef233c !important;
  font-weight: 700 !important;
}
