/* ===================================
   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: 820px; */
  width: 637px !important;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Mukta', sans-serif;
  box-sizing: border-box;
}

.nem-form-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(67,56,202,0.13), 0 4px 24px 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: 44px 48px 36px;
  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: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nem-form-logo img {
  max-height: 70px;
  max-width: 240px;
  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: 30px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px;
  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: 14px;
  margin: 0 0 22px;
  position: relative;
  z-index: 1;
}

.nem-form-divider {
  width: 70px;
  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: 36px 48px 44px; }

.nem-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  padding: 20px;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .nem-form-wrapper { padding: 0 12px; margin: 20px auto; }
  .nem-form-card { border-radius: 20px; }
  .nem-form-grid { grid-template-columns: 1fr; gap: 16px; }
  #nem-enquiry-form { padding: 24px 20px 30px; }
  .nem-form-header { padding: 30px 20px 28px; }
  .nem-form-title { font-size: 22px; }
  .nem-form-logo img { max-height: 54px; }
  .nem-error-message { margin: 0 0 14px !important; }
}

@media (max-width: 400px) {
  .nem-form-title { font-size: 20px; }
  .nem-form-subtitle { font-size: 13px; }
  #nem-enquiry-form { padding: 18px 14px 24px; }
  .nem-form-header { padding: 24px 14px 22px; }
}

/* ── Form Group ── */
.nem-form-group { display: flex; flex-direction: column; gap: 6px; }

/* ── Labels ── */
.nem-label {
  font-size: 13px;
  font-weight: 600;
  color: #1e1b4b;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.nem-label-icon { font-size: 15px; }
.nem-label-hindi { color: #9ca3af; font-weight: 400; font-size: 12px; }
.nem-required { color: #e53935; font-size: 14px; }

/* ── Inputs ── */
.nem-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e0e7ff;
  border-radius: 10px;
  font-size: 14px;
  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: 10px;
  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: 12px 12px 12px 14px;
  font-size: 13px;
  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: 12px; }
.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: 40px; cursor: pointer; }
.nem-select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #4338ca; font-size: 16px; pointer-events: none; }

/* ── Field errors ── */
.nem-field-error { font-size: 12px; color: #e53935; min-height: 16px; display: block; }

/* ── Submit ── */
.nem-submit-wrap {
  margin-top: 30px !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}

.nem-submit-btn {
  width: 100% !important;
  max-width: 100% !important;
  padding: 16px 32px !important;
  background: linear-gradient(135deg, #312e81 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  font-family: 'Mukta', sans-serif !important;
  font-size: 17px !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: 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 36px rgba(67,56,202,0.38) !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: 16px; height: 16px;
  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: 12px 0 0; font-size: 12px; color: #9ca3af; }

/* ── Success ── */
.nem-success-message {
  padding: 36px 48px 32px;
  text-align: center;
  animation: nemFadeIn 0.5s ease;
}
.nem-success-icon { font-size: 60px; margin-bottom: 16px; 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: 16px;
  color: #1e1b4b;
  line-height: 1.8;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 22px 26px;
}

/* ── Error ── */
.nem-error-message {
  margin: 0 48px 16px;
  padding: 12px 18px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #c62828;
  font-size: 14px;
  animation: nemFadeIn 0.3s ease;
}

@keyframes nemFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
