/**
 * Jepixo Marketing Services - Scoped Strategy Modal CSS
 */

.jpx-strategy-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
  box-sizing: border-box;
}

.jpx-strategy-modal * {
  box-sizing: border-box;
}

.jpx-strategy-modal.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.jpx-strategy-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.jpx-strategy-modal-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 580px;
  padding: 16px;
  display: flex;
  justify-content: center;
}

.jpx-strategy-modal-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  border-radius: 18px;
  padding: 38px 36px 34px 36px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transform: scale(0.92) translateY(14px);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.jpx-strategy-modal.is-visible .jpx-strategy-modal-card {
  transform: scale(1) translateY(0);
}

.jpx-strategy-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.15s, color 0.15s;
  outline: none;
  line-height: 1;
}

.jpx-strategy-modal-close:hover {
  background-color: #f3f4f6;
  color: #111827;
}

.jpx-strategy-modal-heading {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(22px, 3.6vw, 28px);
  font-weight: 800;
  color: #046bd2;
  text-align: center;
  margin: 0 0 10px 0;
  padding: 0;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

.jpx-strategy-modal-subtitle {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #556987;
  text-align: center;
  margin: 0 auto 24px auto;
  max-width: 440px;
  line-height: 1.55;
}

.jpx-strategy-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.jpx-form-field {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.jpx-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.jpx-form-label {
  display: block;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 6px;
  text-align: left;
  line-height: 1.3;
}

.jpx-req-star {
  color: #ef4444;
  margin-left: 2px;
  font-weight: 700;
}

.jpx-form-control {
  width: 100%;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #1e293b;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.jpx-form-control::placeholder {
  color: #94a3b8;
  font-weight: 400;
  opacity: 1;
}

.jpx-form-control:hover {
  border-color: #cbd5e1;
}

.jpx-form-control:focus {
  background-color: #ffffff;
  border-color: #046bd2;
  box-shadow: 0 0 0 3.5px rgba(4, 107, 210, 0.15);
}

.jpx-form-textarea {
  min-height: 98px;
  resize: vertical;
}

.jpx-form-control.is-invalid {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.jpx-field-error {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11.5px;
  color: #ef4444;
  margin-top: 4px;
  display: none;
  line-height: 1.2;
}

.jpx-field-error.show {
  display: block;
}

.jpx-strategy-submit-btn {
  width: 100%;
  background-color: #f97316;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 14px 20px;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
  display: block;
  margin-top: 5px;
  text-decoration: none;
  line-height: 1.2;
}

.jpx-strategy-submit-btn:hover {
  background-color: #ea580c;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

.jpx-strategy-submit-btn:active {
  transform: translateY(0);
}

.jpx-strategy-modal-success {
  text-align: center;
  padding: 16px 8px 8px 8px;
}

.jpx-success-icon-bubble {
  width: 64px;
  height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.jpx-success-heading {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #15803d;
  margin: 0 0 10px 0;
}

.jpx-success-text {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 auto;
  max-width: 380px;
}

@media (max-width: 540px) {
  .jpx-strategy-modal-card {
    padding: 32px 20px 24px 20px;
    border-radius: 14px;
  }
  .jpx-strategy-modal-heading {
    font-size: 22px;
  }
  .jpx-strategy-modal-subtitle {
    font-size: 13.5px;
    margin-bottom: 20px;
  }
  .jpx-form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
