/* IITDM admission enquiry form (EnquiryForm.ascx) - Home page and Contact Us page */
.enq-box {
  background: #31004d;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0,0,0,.20);
  padding: 22px 20px 24px;
  color: #fff;
  font-family: Roboto, Montserrat, Arial, sans-serif;
}

.enq-title {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: .01em;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.85);
}

.enq-field { margin-bottom: 14px; }

.enq-field label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.enq-req { color: #ff4d4f; margin-left: 2px; }

.enq-input {
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border: 1px solid #d7d0de;
  border-radius: 3px;
  background: #fff;
  color: #201627;
  font-size: 14px;
  outline: none;
  box-shadow: none;
}

.enq-input::placeholder { color: #8a8492; }

.enq-input:focus {
  border-color: #FDBC01;
  box-shadow: 0 0 0 2px rgba(253,188,1,.35);
}

.enq-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
}

.enq-select[disabled] { background-color: #ebebeb; cursor: not-allowed; }

.enq-other { margin-top: 8px; }

.enq-mobile { display: flex; }

.enq-code {
  flex: 0 0 64px;
  width: 64px;
  height: 40px;
  border: 1px solid #d7d0de;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: #fff;
  color: #201627;
  font-size: 14px;
  padding: 0 4px;
  outline: none;
}

.enq-mobile .enq-input { border-radius: 0 3px 3px 0; }

.enq-captcha-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.enq-captcha-img {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  background: #fff;
  border-radius: 3px;
  overflow: hidden;
  padding-right: 6px;
}

.enq-captcha-img img { display: block; height: 40px; width: auto; max-width: calc(100% - 30px); }

.enq-refresh {
  border: 0;
  background: transparent;
  color: #333;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 14px;
}

.enq-refresh:hover { color: #4B1D69; }

.enq-captcha-input { margin-bottom: 0; }

.enq-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 22px;
  font-size: 14px;
  line-height: 1.5;
}

.enq-consent input[type=checkbox] {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  flex: 0 0 auto;
  cursor: pointer;
}

.enq-consent label { margin: 0; font-weight: 400; color: #fff; cursor: pointer; }

.enq-submit {
  min-width: 96px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 3px;
  background: #FDBC01;
  color: #1B1025;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}

.enq-submit:hover { background: #ffcd33; }
.enq-submit[disabled] { opacity: .7; cursor: wait; }

/* honeypot - hidden from users */
.enq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  .enq-box { padding: 18px 14px 20px; }
  .enq-title { font-size: 22px; }
  .enq-captcha-row { grid-template-columns: 1fr; }
}

/* SweetAlert must show above the Enquire Now popup (site sets the popup z-index very high) */
.swal2-container { z-index: 1000005 !important; }

/* ===== Apply Now / Enquire popup (Site3.Master) ===== */
.iitdm-enq-modal { z-index: 100000 !important; }
body.iem-open .modal-backdrop { z-index: 99999 !important; }
.iitdm-enq-modal .modal-dialog { max-width: 520px; }
.iitdm-enq-modal .modal-content { border: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 70px rgba(30, 6, 46, .45); }
.iitdm-enq-modal .iem-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #4B1D69; padding: 14px 18px; border-bottom: 3px solid #FDBC01;
}
.iitdm-enq-modal .iem-badge {
  display: inline-block; background: #FDBC01; color: #1B1025;
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.iitdm-enq-modal .iem-title { color: #fff; font-size: 16px; font-weight: 800; margin-top: 6px; font-family: Montserrat, sans-serif; }
.iitdm-enq-modal .iem-close {
  width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.12); color: #fff; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.iitdm-enq-modal .iem-close:hover { background: #FDBC01; color: #1B1025; }
.iitdm-enq-modal .iem-body { padding: 0; background: #31004d; }
.iitdm-enq-modal .enq-box { border: 0; border-radius: 0; box-shadow: none; }
