/* ============================================================
   enquiry.css — Hermann College of Education
   Sidebar enquiry form styles
   Usage: <link rel="stylesheet" href="css/enquiry.css">
   ============================================================ */

.hce-enquiry-wrap {
  font-family: 'Segoe UI', sans-serif;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,43,107,.13), 0 1px 0 rgba(0,43,107,.06);
  border: 1px solid #dde3ef;
}

/* ── Header ────────────────────────────────────────── */
.hce-eq-head {
  background: linear-gradient(135deg, #001840 0%, #003d99 100%);
  padding: 20px 20px 18px;
  position: relative;
  overflow: hidden;
}
.hce-eq-head::after {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 120px; height: 120px;
  border: 28px solid rgba(255,255,255,.05);
  border-radius: 50%;
  pointer-events: none;
}

.hce-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.hce-logo-row img {
  height: 36px; width: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 3px;
}
.hce-logo-row span {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .4px;
  line-height: 1.3;
  text-transform: uppercase;
}

.hce-badge {
  display: inline-block;
  background: rgba(201,168,76,.14);
  border: 1px solid rgba(201,168,76,.35);
  color: #f0d990;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.hce-eq-head h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
  font-family: 'Georgia', serif;
}

a.hce-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.4);
  color: #f0d990;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  text-decoration: none;
  transition: background .2s;
}
a.hce-call:hover { background: rgba(201,168,76,.3); }

/* ── Form body ─────────────────────────────────────── */
.hce-eq-body { padding: 18px 18px 20px; }

.hce-field { margin-bottom: 13px; }

.hce-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #002b6b;
  letter-spacing: .4px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.hce-field label .req { color: #c9a84c; margin-left: 1px; }

/* ── Input wrapper — gives icon its positioning context ── */
.hce-input-wrap {
  position: relative;
  display: block;
}

.hce-input-wrap .hce-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aabcc;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
}

/* Textarea: pin icon near top instead of centring */
.hce-input-wrap.hce-ta-wrap .hce-icon {
  top: 12px;
  transform: none;
}

/* ── Inputs / selects / textarea ───────────────────── */
.hce-input-wrap input[type="text"],
.hce-input-wrap input[type="email"],
.hce-input-wrap select,
.hce-input-wrap textarea {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1.5px solid #dde3ef;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  color: #1a1a2e;
  background: #fafbff;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s, background .2s;
  appearance: none;
  -webkit-appearance: none;
}
.hce-input-wrap input:focus,
.hce-input-wrap select:focus,
.hce-input-wrap textarea:focus {
  border-color: #003d99;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,61,153,.09);
}
.hce-input-wrap input::placeholder,
.hce-input-wrap textarea::placeholder { color: #aab3c5; }

.hce-input-wrap textarea {
  padding: 10px 12px 10px 36px;
  min-height: 80px;
  resize: vertical;
  line-height: 1.55;
}

.hce-input-wrap select {
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23002b6b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  cursor: pointer;
}

/* ── Field-level errors ────────────────────────────── */
.hce-err {
  font-size: 11.5px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}
.hce-field.hce-has-err .hce-input-wrap input,
.hce-field.hce-has-err .hce-input-wrap select,
.hce-field.hce-has-err .hce-input-wrap textarea {
  border-color: #dc2626 !important;
}
.hce-field.hce-has-err .hce-err { display: block; }

/* ── Captcha ───────────────────────────────────────── */
.hce-captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #f0f4ff;
  border: 1.5px solid #c7d7f5;
  border-radius: 9px;
}
.hce-captcha-eq {
  font-family: 'Georgia', serif;
  font-size: 17px;
  font-weight: 700;
  color: #002b6b;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 1px;
}
.hce-captcha-sep {
  width: 1px;
  height: 30px;
  background: #c7d7f5;
  flex-shrink: 0;
}
.hce-captcha-row input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px !important;
  background: #fff !important;
  border: 1.5px solid #c7d7f5 !important;
  border-radius: 7px !important;
  font-size: 13.5px !important;
  outline: none;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}
.hce-captcha-row input:focus {
  border-color: #003d99 !important;
  box-shadow: 0 0 0 3px rgba(0,61,153,.09) !important;
}

/* ── Submit button ─────────────────────────────────── */
.hce-submit-btn {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #002b6b 0%, #003d99 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  transition: transform .15s, box-shadow .15s;
  position: relative;
  overflow: hidden;
}
.hce-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.1), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.hce-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,43,107,.35);
}
.hce-submit-btn:hover::before { opacity: 1; }
.hce-submit-btn:active { transform: translateY(0); }

/* ── Trust pills ───────────────────────────────────── */
.hce-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 18px;
  border-top: 1px solid #eef1f8;
  background: #f8faff;
}
.hce-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 600;
  color: #4a5a7a;
  background: #eef1fb;
  border: 1px solid #d8e0f3;
  border-radius: 20px;
  padding: 4px 10px;
}
.hce-trust-pill svg { color: #c9a84c; }

/* ── Success screen ────────────────────────────────── */
.hce-success {
  display: none;
  padding: 36px 20px;
  text-align: center;
}
.hce-success.hce-vis { display: block; }
.hce-eq-body.hce-hidden { display: none; }

.hce-success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7, #bbf7d0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  animation: hcePopIn .4s cubic-bezier(.175,.885,.32,1.275) both;
}
@keyframes hcePopIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.hce-success h4 {
  font-family: 'Georgia', serif;
  color: #002b6b;
  font-size: 17px;
  margin-bottom: 7px;
}
.hce-success p { font-size: 13px; color: #4a5a7a; line-height: 1.6; }

.hce-success .hce-reset {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 22px;
  background: #002b6b;
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: opacity .2s;
}
.hce-success .hce-reset:hover { opacity: .85; }