/* --- Modal --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  z-index: 999;
}

.modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: pop 0.3s ease-out;
}

@keyframes pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 20px;
  font-size: 30px;
  font-weight: bold;
  color: #000000;
  cursor: pointer;
  transition: 0.2s;
  text-shadow: 0px 1px 2px rgb(0, 0, 0);
}

.close-btn:hover {
  color: #000;
}

label {
  display: block;
  margin-top: 20px;
  padding-bottom: 5px;
  font-weight: 600;
  color: #333;
}

/* Umumiy input */
input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f4f4f4;
  outline: none;
  font-size: 16px;
  transition: 0.2s;
}

/* Telefon input uchun maxsus */
.phone-group {
  position: relative;
}

.phone-group span {
  position: absolute;
  top: 49%;
  left: 12px;
  transform: translateY(-50%);
  color: #3e3e3e;
  font-weight: 500;
  /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
}

.phone-group input {
  padding-left: 65px; /* +998 uchun joy */
}

input:focus {
  border-color: #a855f7;
  background: #fff;
}

.btn {
  width: 100%;
  margin-top: 18px;
  border: none;
  color: white;
  font-size: 22px;
  font-weight: 700;
  padding: 12px;
  border-radius: 30px;
  cursor: pointer;
  /* font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif; */
  transition: 0.3s;
  text-shadow: 0px 3px 5px rgb(0, 0, 0);
  background: linear-gradient(to top, #8800b1, #d501ff);
}

.btn:hover {
  background: linear-gradient(to top, #d501ff, #8800b1);
}

/* Xatolik holatlari */
.error-text {
  color: red;
  font-size: 14px;
  margin-top: 4px;
  display: block;
}
.error-text {
  color: red;
  font-size: 14px;
  margin-top: 4px;
  display: block;
  
}

.error-input {
  border: 1px solid red !important;
  background-color: #ffeaea;
}
.form-group {
  margin-bottom: 20px;
}
