/* =============================================================================
   Contact Modal CSS — Creative two-panel design with slide-to-send
   ========================================================================== */

.ngo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.ngo-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ---- Two-panel card ---- */
.ngo-modal-card {
  position: relative;
  width: 100%;
  max-width: 880px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 32px 80px -20px rgba(0,0,0,0.35);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  overflow: hidden;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ngo-modal-overlay.is-active .ngo-modal-card {
  transform: translateY(0) scale(1);
}

/* ---- Left info panel ---- */
.ngo-info-panel {
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 100%);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.ngo-info-panel::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,44,83,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.ngo-info-panel::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -20%;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ngo-info-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}

.ngo-info-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.ngo-info-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0 0 32px;
}

.ngo-info-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: auto;
}

.ngo-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ngo-info-row-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ngo-info-row-icon svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 2;
}

.ngo-info-row span {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.ngo-info-row a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s;
}

.ngo-info-row a:hover {
  color: #ffffff;
}

.ngo-info-socials {
  display: flex;
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.ngo-info-socials a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: all 0.25s ease;
}

.ngo-info-socials a:hover {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

.ngo-info-socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ---- Right form panel ---- */
.ngo-form-panel {
  padding: 36px 32px;
  position: relative;
}

.ngo-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: none;
  color: #64748b;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.ngo-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

.ngo-form-head {
  margin-bottom: 20px;
}

.ngo-form-head h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.ngo-form-head p {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #94a3b8;
  margin: 0;
}

/* Form */
.ngo-modal-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ngo-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ngo-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ngo-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.3px;
}

.ngo-input,
.ngo-select,
.ngo-textarea {
  width: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.ngo-input:focus,
.ngo-select:focus,
.ngo-textarea:focus {
  background: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 0 0 3px rgba(15,23,42,0.06);
}

.ngo-input::placeholder,
.ngo-textarea::placeholder {
  color: #94a3b8;
}

.ngo-textarea {
  resize: vertical;
  min-height: 72px;
}

.ngo-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---- Slide to send ---- */
.ngo-slide-container {
  position: relative;
  width: 100%;
  height: 52px;
  border-radius: 26px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  margin-top: 8px;
  overflow: hidden;
  user-select: none;
  touch-action: pan-y;
}

.ngo-slide-track-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ngo-slide-track-text.is-hidden {
  opacity: 0;
}

.ngo-slide-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s ease;
  z-index: 2;
}

.ngo-slide-thumb:active {
  cursor: grabbing;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

.ngo-slide-thumb svg {
  width: 18px;
  height: 18px;
  stroke: #0f172a;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.ngo-slide-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 52px;
  background: linear-gradient(90deg, rgba(249,44,83,0.3) 0%, rgba(37,99,235,0.25) 100%);
  border-radius: 26px;
  transition: none;
  pointer-events: none;
}

.ngo-slide-container.is-sent {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.ngo-slide-container.is-sent .ngo-slide-track-text {
  opacity: 1;
  color: rgba(255,255,255,0.9);
}

/* ---- Success ---- */
.ngo-success-msg {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.ngo-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 28px;
  font-weight: 700;
}

.ngo-success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.ngo-success-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
}

.ngo-done-btn {
  appearance: none;
  border: none;
  margin-top: 24px;
  padding: 12px 32px;
  border-radius: 12px;
  background: #0f172a;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ngo-done-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .ngo-modal-overlay {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 10px 10px 40px;
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .ngo-modal-card {
    grid-template-columns: 1fr;
    max-width: 100%;
    width: 100%;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 18px;
    margin: 10px auto 30px;
    box-sizing: border-box;
  }

  .ngo-info-panel {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .ngo-info-brand,
  .ngo-info-sub,
  .ngo-info-details,
  .ngo-info-socials {
    display: none !important;
  }

  .ngo-info-title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.3;
  }

  .ngo-form-panel {
    padding: 16px 14px 20px;
  }

  .ngo-form-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .ngo-field-group {
    margin-bottom: 10px;
  }

  .ngo-field-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ngo-form-label {
    font-size: 10px;
    margin-bottom: 4px;
  }

  .ngo-form-input,
  .ngo-form-select,
  .ngo-form-textarea {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .ngo-form-textarea {
    height: 60px;
    min-height: 50px;
  }

  .ngo-slide-container {
    height: 46px;
    border-radius: 23px;
    margin-top: 14px;
  }

  .ngo-slide-button {
    width: 40px;
    height: 40px;
    top: 3px;
    left: 3px;
  }

  .ngo-slide-track-text {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .ngo-modal-close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }
}
