/*
 * Kshema Kisan Sathi Premium Calculator Specific Styles
 */

/* Farmer Info steps progress bar */
.steps {
  margin-bottom: 40px;
  font-size: 1rem;
}

.step {
  display: flex;
  align-items: center;
  margin-right: 18px;
  color: #7b8b7b;
}

.step.active .step-num {
  background: #4d6bb3;
  color: #fff;
}

.step.active .step-label {
  color: #1a2e1a;
}

.step .step-num {
  width: 40px;
  height: 40px;
  background: #e6eaf3;
  color: #4d6bb3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  margin-right: 8px;
  font-size: 1.1rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  cursor: default;
  border: 5px solid #fff;
  outline: 1px solid #ffffff;
  user-select: none;
}

.step .step-num:hover,
.step .step-num:active {
  background: #e6eaf3;
  color: #4d6bb3;
  cursor: pointer;
  outline: 1px solid #e6eaf3;
}

.step.active .step-num:hover,
.step.active .step-num:active {
  background: #4d6bb3;
  color: #fff;
  cursor: default;
}

.step-label {
  font-weight: 500;
}

.step:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: #e6eaf3;
  margin-left: 12px;
  vertical-align: middle;
}

/* Step 1: Farmer type selection */
#farmer-selection .question {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.farmer-types {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
  .farmer-types {
    flex-direction: column;
    gap: 16px;
  }
}

.farmer-type {
  padding: 20px 25px;
  border: 2px solid #e6eaf3;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 500;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-content: space-between;
  width: 270px;
  background: #ffffff;
}

.farmer-type:hover {
  border-color: #aeb4c0;
}

.farmer-type.selected {
  background-color: #e6eaf3;
  border-color: #e6eaf3;
}

.checkmark {
  width: 30px;
  height: 30px;
  border: 2px solid #aeb4c0;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkmark svg {
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: scale(0.8);
}

.farmer-type.selected .checkmark {
  background-color: #2e8b57;
  border-color: #2e8b57;
}

.farmer-type.selected .checkmark svg {
  opacity: 1;
  transform: scale(1);
}

.continue-btn,
.callback-btn {
  padding: 16px 40px;
  background: #7ea6e6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.continue-btn:disabled {
  background: #7ba2e1;
  cursor: not-allowed;
  color: #000 !important;
  letter-spacing: 1px;
}

.continue-btn:hover:enabled,
.callback-btn:hover {
  background: #6a91d9;
}

.back-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #4d6bb3;
  font-weight: 500;
  margin-bottom: 20px;
  cursor: pointer;
}

.back-link svg {
  color: #4d6bb3;
  margin-right: 8px;
}

.back-link:hover {
  color: #000000;
}

.non-loanee-message {
  margin: 40px 0px;
}

/* Alternative product suggestions (Non-Loanee sidebar) */
.side-products {
  background-color: #eef2f6;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.side-products h2 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 20px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 8px;
  padding: 20px;
  border: 1px solid #e2dede;
  background: #ffffff;
  margin-bottom: 10px;
}

.product-logo {
  font-size: 17px;
  font-weight: 400;
  line-height: 25px;
  padding: 30px 20px;
  background: rgba(232, 236, 246, 1);
  border-radius: 8px;
  text-align: center;
}

.product-info {
  flex: 1;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.product-desc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 10px;
}

.explore-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #4d6bb3;
  text-transform: uppercase;
  cursor: pointer;
}

.explore-link a {
  text-decoration: none;
  color: #4d6bb3;
}

.explore-link a:hover {
  color: #311212;
}

/* Perils covered list layout in sidebar */
.peril-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}

.peril-name {
  font-size: 14px;
  color: #475569;
  font-weight: 500;
}

/* Style the modal loader container */
.calculator-loader.modal-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 9999;
}

/* Style the loader animation */
.calculator-loader .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.form-group {
  position: relative;
}
.form-group-duration {
  background-color: #fafbfc;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

#villageSuggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;

  background: #fff;
  border: 1px solid #d9d9d9;

  max-height: 250px;
  overflow-y: auto;

  z-index: 9999;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.suggestion-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
  background: #f5f5f5;
}
