/* ============================================================
   growth-report.css — "Request a Month-wise Growth Report"
   button + modal, used on calculators.html
   N Gram Technologies | ngram.co.in
   ============================================================ */

/* ─── CARD + TRIGGER BUTTON ─── */
.export-btn-report {
  width: 100%;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff;
  box-shadow: 0 4px 14px rgba(26,86,219,.25);
}
.export-btn-report:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(26,86,219,.35); }

/* ─── MODAL BACKDROP ─── */
.gr-modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 3100;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: grFadeIn .18s ease;
}
.gr-modal-backdrop[hidden] { display: none; }
@keyframes grFadeIn { from { opacity: 0; } to { opacity: 1; } }

.gr-modal {
  position: relative;
  background: var(--white); border-radius: 20px;
  max-width: 460px; width: 100%;
  padding: 32px 32px 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  max-height: 90vh; overflow-y: auto;
  animation: grSlideUp .22s ease;
}
@keyframes grSlideUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.gr-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--slate-light); color: var(--text-sub);
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.gr-modal-close:hover { background: var(--border); }

.gr-modal-icon { font-size: 36px; margin-bottom: 10px; }
.gr-modal-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-main); margin-bottom: 6px; line-height: 1.35; }
.gr-modal-sub { font-size: 13px; color: var(--text-sub); line-height: 1.6; margin-bottom: 22px; }

/* ─── FIELDS ─── */
.gr-field { margin-bottom: 16px; }
.gr-label { font-size: 13px; font-weight: 600; color: var(--text-main); display: block; margin-bottom: 6px; }
.gr-required { color: #DC2626; }
.gr-input {
  width: 100%;
  border: 1.5px solid var(--border); border-radius: 9px;
  padding: 11px 14px;
  font-family: var(--font-body); font-size: 14px; color: var(--text-main);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
}
.gr-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.12); }
.gr-input.error { border-color: #DC2626; }
.gr-field-error {
  font-size: 11.5px; color: #DC2626; margin-top: 5px;
  display: none; align-items: center; gap: 4px;
}
.gr-field-error.show { display: flex; }

/* ─── FEEDBACK ─── */
.gr-feedback {
  display: none; align-items: flex-start; gap: 9px;
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 13px; line-height: 1.55; margin-bottom: 16px;
}
.gr-feedback.show { display: flex; }
.gr-feedback-error { background: #FEF2F2; border: 1px solid #FECACA; color: #7F1D1D; }
.gr-feedback-success { background: var(--emerald-light); border: 1px solid #A7F3D0; color: #065F46; }

/* ─── SUBMIT BUTTON ─── */
.gr-submit-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: #fff; border: none; border-radius: var(--radius-sm);
  padding: 14px 20px; font-size: 14.5px; font-weight: 700;
  font-family: var(--font-body); cursor: pointer;
  box-shadow: 0 4px 14px rgba(26,86,219,.25);
  transition: all .2s;
}
.gr-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,219,.35); }
.gr-submit-btn:disabled { opacity: .65; cursor: wait; transform: none !important; }
.gr-btn-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff; border-radius: 50%; display: none;
  animation: grSpin .7s linear infinite;
}
.gr-submit-btn.loading .gr-btn-spinner { display: inline-block; }
.gr-submit-btn.loading .gr-btn-label { display: none; }
@keyframes grSpin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
  .gr-modal { padding: 26px 20px 22px; }
}
