.ifsc-section {
  background: #fff;
  box-shadow: none;
  padding: 0;
}

.ifsc-wrapper {
  padding: 40px 20px;
  background: #f7f9fa;
}

.ifsc-container {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.inner-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

/* ifsc-section >> ifsc-wrapper >> .ifsc-container >> .inner-container */

.ifsc-section h1 {
  font-size: 1.76rem;
  line-height: 1.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  text-align: left;
}

.ifsc-section p {
  font-size: 1.15rem;
  line-height: 1.50rem;
  text-align: left;
  font-weight: 400;
  margin-bottom: 25px;
  color: var(--muted)
}

.branch-locator-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  flex: 1;
  margin: 20px;
  min-width: 250px;
}

/* Vertical separator */
.vertical-separator {
  width: 1px;
  background: #ddd;
  margin: 0 8px;
  align-self: stretch;
}

.select-btn-wrapper {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin-top: 20px;
}

/* Right container elements */
.sections-wrapper {
  flex: 1.5;
  box-sizing: border-box;
  margin: 20px;
}

.banks-section {
  margin-top: 0;
}

.states-section {
  margin-top: 0;
  display: none;
}

.cities-section {
  margin-top: 0;
  display: none;
}

.branches-section {
  margin-top: 0;
  display: none;
}

.note-text {
  font-size: 0.9rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 1rem;
}

/* Title */
.section-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #2d3748;
  margin-bottom: 1.8rem;
  border-left: 4px solid #004aad;
  padding-left: 0.5rem;
}

/* Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px 0;
}

/* Bank card */
.select-item-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.select-item-card:hover {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #004aad;
  transform: translateY(-2px);
}

/* Active (selected) */
.select-item-card.active {
  border: 2px solid #38a169;
  background: #f0fff4;
}

/* Logo */
.item-logo {
  height: 40px;
  width: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

/* Bank name */
.item-name {
  font-size: 0.9rem;
  text-align: center;
  color: #2d3748;
  font-weight: 400;
  flex: 1;
}

.select-item-card:hover .item-name {
  color: #004aad;
}

/* MODEL OVERLAY */

.custom-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  cursor: pointer;
  min-width: 250px;
}

.button-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.button-icon {
  width: 20px;
  height: 20px;
}

.button-title {
  font-size: 16px;
  color: #333;
  text-align: left;
}

.custom-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f5f5f5;
  border-color: #ddd;
}

.custom-button:disabled .button-title {
  color: #999;
}

.custom-button:disabled img {
  opacity: 0.5;
}

.dropdown-arrow {
  width: 16px;
  height: 16px;
  color: #555;
}

/* Overlay background */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

/* Modal box */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  height: 70vh;
  /* adjust as per need */
  min-height: 400px;
  /* cap height for large lists */
  display: flex;
  flex-direction: column;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal-search-wrapper {
  position: relative;
  width: 100%;
}

.modal-search-icon {
  position: absolute;
  top: 50%;
  margin-top: -6px;
  left: 12px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: #666;
  pointer-events: none;
}

.modal-search {
  /* padding: 16px; */
  padding: 16px 12px 16px 48px;
  border: none;
  border: 1px solid #eee;
  font-size: 18px;
  outline: none;
}

.modal-list {
  flex: 1;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.modal-list li {
  padding: 12px 15px;
  border-bottom: 1px solid #f1f1f1;
  cursor: pointer;
}

.modal-list li:hover {
  background: #f7f7f7;
}

/* Close button */
.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-appbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 5;
}

.appbar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

.appbar-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  color: #007bff;
}

.appbar-btn.close-btn {
  font-size: 30px;
  color: #333;
  top: 4px;
}

.appbar-btn:hover {
  opacity: 0.8;
}

.ifsc-title {
  font-size: 1.1rem;
  line-height: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.ifsc-input-group {
  display: flex;
  align-items: center;
  gap: 30px;
}

.ifsc-input,
.ifsc-btn {
  height: 44px !important;
  line-height: 44px !important; 
  font-size: 14px;
  border-radius: 8px;
}

/* Input styling */
.ifsc-input {
  flex: 1;
  padding: 12px 12px;
  border: 1px solid var(--theme-color); 
  height: 44px !important;
  line-height: 44px !important; 
  text-transform: uppercase;
}

/* Button styling */
.ifsc-btn {
  padding: 0 20px;
  background-color: #1976d2;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  align-self: flex-start;
}

.btn-themed{
  align-self: stretch;
  height: 44px;
}

.ifsc-btn:hover {
  background-color: #125aa0;
}

.short-info-bank {
  display: none;
  background: #f7f9fa;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Bank name */
.short-info-bank-name {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* Bank logo */
.short-info-bank-logo {
  height: 50px;   /* desktop default */
  width: auto;
}

.ifsc-input-error {
  border: 1px solid #d9534f; /* red border */
  animation: shake 0.3s;
}

@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}

/* Error */
.ifsc-error {
  color: #d9534f; /* red error */
  font-size: 13px;
  font-weight: 500;
  margin-top: 6px;
  display: none; /* hidden by default */
}

.share-branch {
  margin-top: 24px;
  text-align: center;
  padding: 10px 0;
  background: #f7f9fa;
  border-radius: 12px;
}

.share-branch h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #222;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform 0.2s ease, opacity 0.2s ease;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.share-btn img {
  width: 44px;
  height: 44px;
}

.share-btn:hover {
  transform: scale(1.1);
  opacity: 0.9;
}

/* .whatsapp { background-color: #25D366; border: none; }
.facebook { background-color: #1877F2; border: none; }
.twitter { background-color: #000; border: none; }
.linkedin { background-color: #0077B5; border: none; }
.copy { background-color: #6c757d; border: none; } */

/* CSS */
.or-separator {
  display: flex;
  align-items: center;
  gap: 16px;                 
  color: var(--theme-color);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .06em;

  /* layout */
  width: 100%;
  margin: 30px 0;
  box-sizing: border-box;
  justify-content: center;
  position: relative;
}

/* create lines on both sides */
.or-separator::before,
.or-separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e6eef8;       /* line color — change per theme */
  min-width: 15px;           /* prevent collapse on small widths */
}

.page-explain-content {
  max-width: 1200px;
  margin: 30px auto;
  padding: 16px;
  background: #fff;
}

.page-explain-container {
  padding: 20px;
}

.page-blog-article p {
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  
  .ifsc-section .inner-container {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }

  .branch-locator-wrapper {
    flex: 100%;
    margin: 12px;
  }

  .vertical-separator {
    display: none;
    width: 0px;
    margin: 0 0;
  }

  .section-container {
    max-height: 50vh;
    width: 100%;
  }

  .data-grid {
    grid-template-columns: 1fr;
  }

  .select-item-card {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.75rem;
  }

  .item-logo {
    height: 32px;
    margin-right: 0.75rem;
    margin-bottom: 0;
  }

  .item-name {
    text-align: left;
    font-size: 0.9rem;
  }

  .short-info-bank {
    flex-direction: column;   /* stack vertically */
    justify-content: center;
    text-align: center;
    gap: 10px;
  }

  .short-info-bank-logo {
    order: 1;
    margin: 0 auto;
  }

  .short-info-bank-name {
    order: 2;
    font-size: 15px;
  }

  .sections-wrapper {
    flex: 1;
    width: 100%;   
    margin: 0;
    padding: 12px 12px;
  }
}

@media (max-width: 480px) {

  .ifsc-wrapper {
    padding: 16px 8px;
  }

  .ifsc-container {
    padding: 8px;
  }

  .page-explain-content {
    padding: 8px;
  }

  .page-explain-container {
    padding: 10px;
  }

  .ifsc-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  .short-info-bank-logo {
    height: 35px;   /* desktop default */
    width: auto;
  }
}