.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
  line-height: 1.3;
}
.modal-title span {
  color: #e53935;
  font-weight: 800;
  display: block;
  font-size: 1.6rem;
}

.modal hr {
  margin: 1rem auto;
  border: none;
  height: 1px;
  background: #ddd;
  width: 90%;
}

.modal-grid {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  justify-content: center;
}

.modal-box {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 1rem;
  background: #fafafa;
  text-align: left;   /* left aligned */
}

.modal-box .label {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.modal-box .value {
  font-size: 1.2rem;
  font-weight: bold;
  color: #111;
  margin-top: 2px;
}

/* Placeholder square for icons/images */
.icon-placeholder {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.modal-input {
  margin: 1rem 0;
  text-align: left;
}
.wa-label {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-field {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 30px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.country-code {
  background: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  border-right: 1px solid #ccc;
}
.country-code img {
  width: 20px;
  height: auto;
  border-radius: 2px;
}
.wa-field input {
  flex: 1;
  border: none;
  padding: 0.7rem;
  outline: none;
  font-size: 1rem;
}

.checkbox-row {
  text-align: left;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #444;
}

.confirm-btn {
  display: inline-block;
  background: linear-gradient(90deg, #00c853, #43a047);
  color: #fff;
  padding: 8px 20px ;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
}
.confirm-btn:hover {
  background: linear-gradient(90deg, #43a047, #00c853);
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal {
    max-width: 95%;
    padding: 1.5rem;
  }

  .modal-title {
    font-size: 1.5rem;
  }
  .modal-title span {
    font-size: 1.2rem;
  }

  .modal-grid {
    flex-direction: column;   /* 👈 boxes niche aa jayenge */
    gap: 0.8rem;
  }

  .modal-box {
    padding: 0.8rem;
  }

  .wa-field {
    flex-direction: row;
  }
  .country-code {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }
  .wa-field input {
    font-size: 0.95rem;
  }

  .confirm-btn {
    width: 100%;  /* 👈 button full width */
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
  }
}
