/* ─────────────────────────────────────────
   SECTION 4 — CONFIGURATIONS & EMI
───────────────────────────────────────── */

#section-4 {
  background: var(--secondary-col);
  overflow: hidden;
}

/* ══════════════════════════════════════
   PRICING SECTION
══════════════════════════════════════ */

.pricing-con {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 48px 64px;
}

/* ── Section header ── */

.pricing-text-con {
  text-align: center;
  margin-bottom: 0;
  padding-top: 0;
}

.pricing-text-con::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  background: var(--primary-col);
  margin: 0 auto 20px;
}

.pricing-text-con h3 {
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  font-weight: 700;
  color: var(--tertiary-col);
  letter-spacing: 0.2em;
  line-height: 1;
  margin-bottom: 12px;
}

.pricing-text-con p {
  font-size: 0.95rem;
  color: var(--tertiary-col);
  font-family: var(--font3);
  opacity: 0.6;
  letter-spacing: 0.04em;
  padding-bottom: 0;
}

/* ── Currency selector ── */

.currency-selector-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 32px auto 0;
  width: fit-content;
  padding: 14px 28px;
  border-radius: 4px;
  border: 2px solid var(--primary-col);
  background: var(--tertiary-col);
  box-shadow: 0 6px 24px rgba(2, 79, 110, 0.18);
  z-index: 10;
}

.currency-label {
  font-size: 0.85rem;
  font-family: var(--font3);
  color: var(--secondary-col);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  opacity: 1;
  margin: 0;
}

/* ── Custom dropdown wrapper ── */

.currency-custom-select {
  position: relative;
}

/* Trigger button */
.currency-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 14px;
  background: transparent;
  border: 1.5px solid rgba(247, 246, 228, 0.35);
  border-radius: 3px;
  color: var(--secondary-col);
  font-size: 0.88rem;
  font-family: var(--font3);
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  min-width: 200px;
  white-space: nowrap;
  transition: border-color 0.2s ease;
}

.currency-trigger:hover {
  border-color: rgba(247, 246, 228, 0.7);
}

.currency-trigger[aria-expanded="true"] {
  border-color: var(--primary-col);
}

.currency-trigger-text {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron */
.currency-chevron {
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  opacity: 0.75;
}

.currency-trigger[aria-expanded="true"] .currency-chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* Dropdown panel */
.currency-dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 260px;
  background: var(--tertiary-col);
  border: 1.5px solid var(--primary-col);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(2, 79, 110, 0.3);
  z-index: 100;
  overflow: hidden;
}

.currency-dropdown-panel.open {
  display: flex;
  flex-direction: column;
}

/* Search row */
.currency-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(247, 246, 228, 0.1);
}

.currency-search-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(247, 246, 228, 0.4);
}

.currency-search {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--secondary-col);
  font-size: 0.82rem;
  font-family: var(--font3);
  letter-spacing: 0.03em;
}

.currency-search::placeholder {
  color: rgba(247, 246, 228, 0.3);
}

/* Options list */
.currency-options-list {
  list-style: none;
  overflow-y: auto;
  max-height: 220px;
  padding: 6px 0;
}

.currency-options-list::-webkit-scrollbar {
  width: 4px;
}

.currency-options-list::-webkit-scrollbar-track {
  background: transparent;
}

.currency-options-list::-webkit-scrollbar-thumb {
  background: rgba(247, 246, 228, 0.2);
  border-radius: 2px;
}

.currency-option {
  padding: 9px 14px;
  font-size: 0.82rem;
  font-family: var(--font3);
  color: rgba(247, 246, 228, 0.75);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.currency-option:hover {
  background: rgba(247, 246, 228, 0.08);
  color: var(--secondary-col);
}

.currency-option.active {
  color: var(--primary-col);
  font-weight: 600;
  background: rgba(191, 75, 38, 0.1);
}

.currency-no-results {
  padding: 12px 14px;
  font-size: 0.8rem;
  font-family: var(--font3);
  color: rgba(247, 246, 228, 0.35);
  text-align: center;
}

/* ── Cards grid ── */

.pricing-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
  padding: 0;
  justify-items: stretch;
}

/* ── Individual card ── */

.pricing-card {
  background: var(--tertiary-col);
  border: 1px solid rgba(191, 75, 38, 0.25);
  border-radius: 3px;
  overflow: hidden;
  width: 100%;
  max-width: none;
  min-height: unset;
  position: relative;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: 0 4px 20px rgba(2, 79, 110, 0.12);
}

/* Accent stripe at the top of each card */
.pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-col);
  z-index: 1;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(2, 79, 110, 0.22);
}

.card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* ── Video panel ── */

.card-video-section {
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
}

.card-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--tertiary-col);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-video-container.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 79, 110, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition:
    background 0.3s ease,
    opacity 0.3s ease;
  cursor: pointer;
}

.video-overlay:hover {
  background: rgba(2, 79, 110, 0.58);
}

.video-play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-col);
  color: var(--secondary-col);
  border: 2px solid rgba(247, 246, 228, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  padding: 0;
  flex-shrink: 0;
}

.video-play-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(191, 75, 38, 0.5);
}

.video-play-btn:active {
  transform: scale(0.95);
}

.video-play-btn svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

/* Bottom border accent on video */
.pricing-card-premium .card-video-container,
.pricing-card-luxe .card-video-container,
.pricing-card-4bhk .card-video-container {
  border-bottom: 2px solid rgba(191, 75, 38, 0.5);
}

/* ── Info panel ── */

.card-info-section {
  flex: 1;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.card-header-compact {
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(247, 246, 228, 0.1);
}

.card-header-compact h4 {
  color: var(--secondary-col);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
}

.card-details {
  flex: 1;
  margin-bottom: 18px;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  gap: 8px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(247, 246, 228, 0.07);
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 0.65rem;
  color: rgba(247, 246, 228, 0.5);
  font-family: var(--font3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.detail-value {
  font-size: 0.88rem;
  color: var(--secondary-col);
  font-family: var(--font3);
  font-weight: 600;
  text-align: right;
}

.detail-price {
  font-size: 1.18rem;
  color: var(--primary-col);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: right;
}

.card-cta-btn {
  background: transparent;
  color: var(--secondary-col);
  border: 1px solid rgba(247, 246, 228, 0.35);
  padding: 10px 18px;
  font-size: 0.68rem;
  font-family: var(--font3);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
  width: 100%;
  margin-top: auto;
}

.card-cta-btn:hover {
  background: var(--primary-col);
  border-color: var(--primary-col);
  color: var(--secondary-col);
}

.card-cta-btn:active {
  opacity: 0.85;
}

/* ══════════════════════════════════════
   EMI CALCULATOR SECTION
══════════════════════════════════════ */

.emi-calculator-con {
  background: var(--tertiary-col);
  padding: 72px 48px 64px;
  margin-top: 0;
  position: relative;
}

/* Decorative top center rule */
.emi-calculator-con::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--primary-col);
}

/* ── Heading ── */

.emi-calculator-text-con {
  text-align: center;
  margin-bottom: 52px;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.emi-calculator-text-con h3 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--secondary-col);
  margin-bottom: 14px;
}

.emi-calculator-text-con p {
  font-size: 0.9rem;
  color: rgba(247, 246, 228, 0.55);
  font-family: var(--font3);
  line-height: 1.7;
  letter-spacing: 0.02em;
  margin: 0;
}

/* ── Inputs ── */

.emi-calculator-form {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 48px;
  max-width: 860px;
  margin: 0 auto;
  align-items: end;
  margin-bottom: 0;
}

.emi-input-group {
  display: flex;
  flex-direction: column;
  position: relative;
}

.emi-input-group label {
  color: rgba(247, 246, 228, 0.45);
  margin-bottom: 10px;
  font-size: 0.65rem;
  font-family: var(--font3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.emi-input-group input {
  padding: 10px 0 10px;
  border: none;
  border-bottom: 1px solid rgba(247, 246, 228, 0.2);
  border-radius: 0;
  background: transparent;
  color: var(--secondary-col);
  font-size: 1rem;
  font-family: var(--font3);
  transition: border-color 0.3s ease;
  box-shadow: none;
}

.emi-input-group input:focus {
  outline: none;
  border-bottom-color: var(--primary-col);
  box-shadow: none;
}

.emi-input-group input::placeholder {
  color: rgba(247, 246, 228, 0.22);
  font-size: 0.88rem;
}

/* Remove number spinners */
.emi-input-group input[type="number"]::-webkit-outer-spin-button,
.emi-input-group input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.emi-input-group input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* ── CTA button ── */

.calculate-emi-btn {
  display: block;
  background: var(--primary-col);
  color: var(--secondary-col);
  border: none;
  padding: 13px 40px;
  border-radius: 2px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
  grid-column: 1 / -1;
  width: fit-content;
  min-width: 200px;
  margin: 36px auto 0;
}

.calculate-emi-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(191, 75, 38, 0.38);
}

.calculate-emi-btn:active {
  transform: translateY(0);
  opacity: 1;
}

/* ── Results ── */

.emi-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 860px;
  margin: 44px auto 0;
  background: rgba(247, 246, 228, 0.05);
  border: 1px solid rgba(247, 246, 228, 0.1);
  border-radius: 3px;
  padding: 28px 36px;
  box-shadow: none;
}

.emi-result-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
  border-right: 1px solid rgba(247, 246, 228, 0.1);
  align-items: center;
  text-align: center;
  justify-content: center;
}

.emi-result-item:first-child {
  padding-left: 0;
  align-items: flex-start;
  text-align: left;
}

.emi-result-item:last-child {
  border-right: none;
  padding-right: 0;
  align-items: flex-end;
  text-align: right;
}

.emi-label {
  color: rgba(247, 246, 228, 0.45);
  font-size: 0.62rem;
  font-family: var(--font3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.emi-value {
  font-family: var(--font1);
  color: var(--secondary-col);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* ── 1200px ── */
@media (max-width: 1200px) {
  .pricing-con {
    padding: 70px 36px 56px;
  }

  .pricing-items {
    gap: 20px;
    margin-top: 38px;
  }

  .card-info-section {
    padding: 20px 18px 16px;
  }

  .detail-price {
    font-size: 1.08rem;
  }

  .emi-calculator-con {
    padding: 64px 36px 56px;
  }

  .emi-calculator-form {
    gap: 0 36px;
    max-width: 780px;
  }

  .emi-results {
    max-width: 780px;
    padding: 26px 28px;
  }

  .emi-result-item {
    padding: 0 20px;
  }
}

/* ── 900px ── */
@media (max-width: 900px) {
  .pricing-con {
    padding: 60px 24px 44px;
  }

  .pricing-text-con h3 {
    font-size: 2rem;
    letter-spacing: 0.14em;
  }

  .pricing-items {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 32px;
  }

  .card-info-section {
    padding: 18px 16px 14px;
  }

  .card-header-compact h4 {
    font-size: 0.88rem;
  }

  .detail-price {
    font-size: 1rem;
  }

  .card-cta-btn {
    font-size: 0.64rem;
    padding: 9px 14px;
  }

  .emi-calculator-con {
    padding: 56px 24px 48px;
  }

  .emi-calculator-form {
    grid-template-columns: repeat(3, 1fr);
    gap: 0 24px;
    max-width: 100%;
  }

  .emi-results {
    max-width: 100%;
    padding: 22px 20px;
  }

  .emi-result-item {
    padding: 0 16px;
  }

  .emi-value {
    font-size: 1.15rem;
  }
}

/* ── 520px ── */
@media (max-width: 520px) {
  .pricing-con {
    padding: 48px 16px 32px;
  }

  .pricing-text-con h3 {
    font-size: 1.45rem;
    letter-spacing: 0.12em;
  }

  .pricing-text-con p {
    font-size: 0.84rem;
  }

  .currency-selector-container {
    width: calc(100% - 32px);
    padding: 12px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .currency-trigger {
    min-width: 0;
    flex: 1;
  }

  .currency-dropdown-panel {
    right: auto;
    width: calc(100vw - 64px);
    min-width: unset;
  }

  .pricing-items {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  /* Horizontal card layout on mobile */
  .card-inner {
    flex-direction: row;
    min-height: 130px;
  }

  .card-video-section {
    flex: 0 0 120px;
    align-self: stretch;
    order: 1;
  }

  .card-video-container {
    aspect-ratio: unset;
    height: 100%;
  }

  .card-info-section {
    flex: 1;
    padding: 14px 12px 12px;
    order: 2;
  }

  .card-header-compact {
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .card-header-compact h4 {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
  }

  .detail-item {
    padding: 6px 0;
  }

  .detail-label {
    font-size: 0.56rem;
  }

  .detail-value {
    font-size: 0.76rem;
  }

  .detail-price {
    font-size: 0.9rem;
  }

  .card-cta-btn {
    font-size: 0.6rem;
    padding: 8px 10px;
    letter-spacing: 0.1em;
  }

  /* EMI */
  .emi-calculator-con {
    padding: 48px 16px 44px;
  }

  .emi-calculator-text-con {
    margin-bottom: 40px;
  }

  .emi-calculator-text-con h3 {
    font-size: 1.4rem;
    letter-spacing: 0.1em;
  }

  .emi-calculator-text-con p {
    font-size: 0.84rem;
  }

  .emi-calculator-form {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }

  .calculate-emi-btn {
    min-width: 160px;
    margin-top: 28px;
  }

  .emi-results {
    grid-template-columns: 1fr;
    padding: 24px 20px;
    gap: 0;
  }

  .emi-result-item {
    border-right: none;
    border-bottom: 1px solid rgba(247, 246, 228, 0.1);
    padding: 18px 0;
    align-items: flex-start;
    text-align: left;
  }

  .emi-result-item:first-child {
    padding-top: 0;
  }

  .emi-result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
    align-items: flex-start;
    text-align: left;
  }

  .emi-value {
    font-size: 1.1rem;
  }
}

/* ── 375px ── */
@media (max-width: 375px) {
  .pricing-con {
    padding: 40px 12px 28px;
  }

  .pricing-text-con h3 {
    font-size: 1.25rem;
  }

  .currency-selector-container {
    width: calc(100% - 24px);
    padding: 11px 14px;
  }

  .pricing-items {
    gap: 12px;
    padding: 0;
  }

  .card-inner {
    min-height: 114px;
  }

  .card-video-section {
    flex: 0 0 104px;
  }

  .card-info-section {
    padding: 12px 10px 10px;
  }

  .card-header-compact h4 {
    font-size: 0.72rem;
  }

  .detail-price {
    font-size: 0.84rem;
  }

  .card-cta-btn {
    font-size: 0.58rem;
    padding: 7px 8px;
  }

  .emi-calculator-con {
    padding: 40px 12px 40px;
  }

  .emi-calculator-text-con h3 {
    font-size: 1.25rem;
  }

  .emi-calculator-text-con p {
    font-size: 0.8rem;
  }
}
