@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

body,
html {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  overflow-x: hidden;
}

nav {
  background-color: #333;
  color: white;
  padding: 10px 0;
}

@media screen and (max-width: 768px) {
  nav {
    display: none !important;
  }

  .nav-links {
    line-height: 1.5;
  }
  .nav-content {
    padding: 0 20px;
  }

  #home-nav-container {
    display: none;
    padding: 0;
  }
}

.nav-content {
  display: flex;
  justify-content: end;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin-left: 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Container and form styles */
.container {
  display: flex;
  justify-content: center;
  align-items: start;
  max-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  box-sizing: border-box;
}

.form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 20px 40px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 20px 0;
}

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

.form-header h1 {
  color: #333;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.subheading {
  color: #666;
  font-size: 16px;
  margin: 0;
  line-height: 1.5;
}

/* Payment Method Toggle */
.payment-toggle {
  display: flex;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 30px;
  gap: 4px;
}

.toggle-button {
  flex: 1;
  padding: 12px 16px;
  text-align: center;
  border: none;
  background-color: transparent;
  color: #666;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-button svg {
  width: 20px;
  height: 20px;
}

.toggle-button.active {
  background-color: #667eea;
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toggle-button:hover:not(.active) {
  background-color: #e9ecef;
  color: #333;
}

.toggle-button:active {
  transform: translateY(1px);
}

/* Form sections */
.form-section {
  margin-bottom: 30px;
  transition: all 0.3s ease;
}

.form-section.hidden {
  display: none;
}

.form-section h3 {
  color: #333;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
  font-family: 'Poppins', sans-serif;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e1e5e9;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #999;
}

.form-actions {
  text-align: center;
  margin-top: 30px;
}

.submit-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Poppins', sans-serif;
  min-width: 150px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Error message styling */
.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  font-family: 'Poppins', sans-serif;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tablet Responsive Design */
@media screen and (max-width: 1024px) {
  .container {
    padding: 15px;
  }
  
  .form-container {
    padding: 30px;
    max-width: 450px;
  }
  
  .form-header h1 {
    font-size: 26px;
  }
  
  .subheading {
    font-size: 15px;
  }
}

/* Mobile Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    padding: 10px;
    align-items: center;
    min-height: 100vh;
  }
  
  .form-container {
    padding: 25px 20px;
    max-width: 100%;
    margin: 10px 0;
    max-height: 95vh;
  }
  
  .form-header h1 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  
  .subheading {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .form-section {
    margin-bottom: 25px;
  }
  
  .form-section h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  .form-group {
    margin-bottom: 15px;
  }
  
  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .form-group input {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .submit-btn {
    padding: 12px 28px;
    font-size: 15px;
    min-width: 120px;
  }


.bottom-menu {
    padding: 10px 20px;
  }
  .bottom-menu .menu-item {
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .bottom-menu .menu-item.active {
    background-color: #f6f4ff;
  }
  .bottom-menu .menu-item .b-text {
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
  }
  .bottom-menu .menu-item.active .b-text {
    color: #6447ed;
  }
  .bottom-menu .menu-item.active .b-image path {
    fill: #6447ed;
  }
  .bottom-menu .b-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
  }


  .toggle-button {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    border: none;
    background-color: transparent;
    color: #333;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease;
  }

  .toggle-button.active {
    background-color: #6447ed; /* Active background */
    color: #fff; /* Active text color */
  }
}

.menu-item {
    text-align: center;
    flex: 1;
  }
  .menu-item i {
    font-size: 20px;
    color: #666;
  }
  .menu-item span {
    display: block;
    font-size: 12px;
    color: #666;
  }

/* Small Mobile Responsive Design */
@media screen and (max-width: 480px) {
  .container {
    padding: 5px;
  }
  
  .form-container {
    padding: 20px 15px;
    border-radius: 8px;
    margin-bottom: 100px;
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .form-header h1 {
    font-size: 20px;
  }
  
  .subheading {
    font-size: 13px;
  }
  
  .form-section h3 {
    font-size: 15px;
  }
  
  .form-group input {
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .submit-btn {
    padding: 10px 24px;
    font-size: 14px;
    width: 100%;
    max-width: 200px;
  }

.bottom-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    /* height: 60px; */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
}

/* Extra Small Mobile Responsive Design */
@media screen and (max-width: 360px) {
  .form-container {
    padding: 15px 12px;
  }
  
  .form-header h1 {
    font-size: 18px;
  }
  
  .subheading {
    font-size: 12px;
  }
  
  .form-group input {
    padding: 8px 10px;
  }
}

/* Landscape orientation adjustments */
@media screen and (max-height: 600px) and (orientation: landscape) {
  .container {
    align-items: flex-start;
    padding: 10px;
  }
  
  .form-container {
    max-height: 85vh;
    margin: 5px 0;
  }
  
  .form-header {
    margin-bottom: 20px;
  }
  
  .form-section {
    margin-bottom: 20px;
  }
  
  .form-group {
    margin-bottom: 12px;
  }
}



  @media (min-width: 768px) {
  .bottom-menu {
    display: none;
}
}

/* Status Header */
.status-header {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.status-header.loading {
  background: #fff3cd;
  border-color: #ffeaa7;
}

.status-header.success {
  background: #d4edda;
  border-color: #c3e6cb;
}

.status-header.error {
  background: #f8d7da;
  border-color: #f5c6cb;
}

.status-header.pending {
  background: #fff3cd;
  border-color: #ffeaa7;
}

.status-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.status-header.loading .status-icon {
  background: #fff3cd;
  color: #856404;
}

.status-header.success .status-icon {
  background: #d4edda;
  color: #155724;
}

.status-header.error .status-icon {
  background: #f8d7da;
  color: #721c24;
}

.status-header.pending .status-icon {
  background: #fff3cd;
  color: #856404;
}

.status-icon svg {
  width: 24px;
  height: 24px;
}

.status-text h2 {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
}

.status-text p {
  margin: 0;
  font-size: 14px;
  color: #666;
  font-family: 'Poppins', sans-serif;
}

.status-header.loading .status-text h2 {
  color: #856404;
}

.status-header.success .status-text h2 {
  color: #155724;
}

.status-header.error .status-text h2 {
  color: #721c24;
}

.status-header.pending .status-text h2 {
  color: #856404;
}

/* Loading animation for status icon */
.status-header.loading .status-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}


#validateIfscCode {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 5px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30%;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

#validateIfscCode:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#validateIfscCode:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

#ifscValidationResult {
  margin-top: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

#ifscValidationResult div {
  animation: fadeIn 0.3s ease;
}