/* ===================================
   NGO Enquiry Manager — Form Styles
   =================================== */
@import url('https://fonts.googleapis.com/css2?family=Mukta:wght@400;500;600;700&family=Playfair+Display:wght@700&display=swap');

.nem-form-wrapper {
  max-width: 680px;
  width: calc(100% - 48px) !important;
  margin: 24px auto !important;
  padding: 0 !important;
  font-family: 'Mukta', sans-serif;
  box-sizing: border-box;
}

.nem-form-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(67,56,202,0.13), 0 4px 20px rgba(0,0,0,0.06);
  overflow: hidden;
}

/* Elementor / Theme conflict fixes */
.nem-form-wrapper *,
.nem-form-wrapper *:before,
.nem-form-wrapper *:after { box-sizing: border-box; }
.nem-form-wrapper form { margin: 0 !important; padding: 0 !important; }
.nem-submit-wrap,
.nem-submit-btn { display: block !important; visibility: visible !important; opacity: 1 !important; }

/* ── Header ── */
.nem-form-header {
  background: linear-gradient(135deg, #312e81 0%, #4338ca 55%, #6366f1 100%);
  padding: 30px 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.nem-form-header::before {
  content: '';
  position: absolute;
  top: -60%; left: -30%;
  width: 160%; height: 220%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.07) 0%, transparent 65%);
  animation: nemPulse 7s ease-in-out infinite;
}

.nem-form-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ec4899, #6366f1);
}

@keyframes nemPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.08) rotate(2deg); }
}

/* ── Logo ── */
.nem-form-logo {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nem-form-logo img {
  max-height: 60px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.30));
  border-radius: 6px;
}

.nem-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.nem-form-subtitle {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
}

.nem-form-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  border-radius: 2px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ── Form body ── */
#nem-enquiry-form { padding: 22px 28px 30px !important; }

.nem-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}

/* ── Form Group ── */
.nem-form-group { display: flex; flex-direction: column; gap: 5px; }

/* ── Labels ── */
.nem-label {
  font-size: 12px;
  font-weight: 600;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.nem-label-icon { font-size: 14px; }
.nem-label-hindi { color: #9ca3af; font-weight: 400; font-size: 11px; }
.nem-required { color: #e53935; font-size: 13px; }

/* ── Inputs ── */
.nem-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e7ff;
  border-radius: 9px;
  font-size: 13px;
  font-family: 'Mukta', sans-serif;
  color: #1e1b4b;
  background: #f5f3ff;
  transition: all 0.25s ease;
  box-sizing: border-box;
  outline: none;
}
.nem-input:focus {
  border-color: #4338ca;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(67,56,202,0.10);
}
.nem-input.nem-error { border-color: #e53935; background: #fff5f5; }
.nem-input::placeholder { color: #a5b4fc; }

/* ── Mobile prefix ── */
.nem-input-with-prefix {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e7ff;
  border-radius: 9px;
  background: #f5f3ff;
  transition: all 0.25s;
  overflow: hidden;
}
.nem-input-with-prefix:focus-within {
  border-color: #4338ca;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(67,56,202,0.10);
}
.nem-prefix {
  padding: 10px 10px 10px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #4338ca;
  background: rgba(67,56,202,0.08);
  border-right: 1.5px solid #e0e7ff;
  white-space: nowrap;
}
.nem-input-with-prefix .nem-input { border: none; background: transparent; box-shadow: none; border-radius: 0; padding-left: 10px; }
.nem-input-with-prefix .nem-input:focus { box-shadow: none; }

/* ── Select ── */
.nem-select-wrapper { position: relative; }
.nem-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; }
.nem-select-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #4338ca; font-size: 15px; pointer-events: none; }

/* ── Field errors ── */
.nem-field-error { font-size: 11px; color: #e53935; min-height: 14px; display: block; }

/* ── Submit ── */
.nem-submit-wrap {
  margin-top: 22px !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.nem-submit-btn {
  width: auto !important;
  max-width: 280px !important;
  min-width: 160px !important;
  padding: 12px 28px !important;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-family: 'Mukta', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  position: relative !important;
  overflow: hidden !important;
  letter-spacing: 0.3px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  line-height: normal !important;
  text-align: center !important;
  box-sizing: border-box !important;
}
.nem-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
.nem-submit-btn:hover::before { opacity: 1; }
.nem-submit-btn:hover { transform: translateY(-2px) !important; box-shadow: 0 10px 30px rgba(67,56,202,0.35) !important; }
.nem-submit-btn:active { transform: translateY(0) !important; }
.nem-btn-text, .nem-btn-loading { position: relative; z-index: 1; }

.nem-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: nemSpin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes nemSpin { to { transform: rotate(360deg); } }

.nem-privacy-note { margin: 10px 0 0; font-size: 11px; color: #9ca3af; }

/* ── Success ── */
.nem-success-message {
  padding: 28px 28px 26px;
  text-align: center;
  animation: nemFadeIn 0.5s ease;
}
.nem-success-icon { font-size: 50px; margin-bottom: 14px; animation: nemBounce 0.6s ease; }

@keyframes nemBounce {
  0% { transform: scale(0); }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.nem-success-text {
  font-size: 15px;
  color: #1e1b4b;
  line-height: 1.8;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 18px 22px;
}

/* ── Error ── */
.nem-error-message {
  margin: 0 28px 14px !important;
  padding: 10px 16px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #c62828;
  font-size: 13px;
  animation: nemFadeIn 0.3s ease;
}

@keyframes nemFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════
   RESPONSIVE
   ══════════════════════════════ */

/* Tablet */
@media (max-width: 768px) {
  .nem-form-wrapper {
    width: calc(100% - 32px) !important;
    margin: 16px auto !important;
  }
  .nem-form-grid { grid-template-columns: 1fr 1fr; gap: 12px 16px; }
  #nem-enquiry-form { padding: 20px 22px 26px !important; }
  .nem-form-header { padding: 26px 22px 20px; }
  .nem-form-title { font-size: 23px; }
}

/* Mobile */
@media (max-width: 600px) {
  .nem-form-wrapper {
    width: calc(100% - 20px) !important;
    margin: 12px auto !important;
  }
  .nem-form-card { border-radius: 14px; }
  .nem-form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  #nem-enquiry-form { padding: 16px 16px 22px !important; }
  .nem-form-header { padding: 22px 16px 18px; }
  .nem-form-title { font-size: 19px; }
  .nem-form-subtitle { font-size: 12px; }
  .nem-form-logo img { max-height: 48px; }
  .nem-error-message { margin: 0 0 12px !important; }
  .nem-submit-btn {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 15px !important;
    padding: 13px 20px !important;
  }
}

/* Small Mobile */
@media (max-width: 380px) {
  .nem-form-wrapper { width: calc(100% - 12px) !important; }
  .nem-form-title { font-size: 17px; }
  #nem-enquiry-form { padding: 14px 12px 18px !important; }
  .nem-form-header { padding: 18px 12px 16px; }
  .nem-submit-btn { font-size: 14px !important; padding: 11px 16px !important; }
}