/* ============================================================
   Shared "Contact Sales" modal — used across every public page
   (landing / pricing / institutions / compare / privacy / terms
   and the generated /explore pages). Markup is injected by
   public/contact-sales-modal.js; this file styles it.
   Self-contained: relies only on the Aleo/Inter fonts the public
   pages already load — no icon-font dependency.
   ============================================================ */
.sales-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 21, 32, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sales-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sales-modal-card {
  background: #0d1520;
  border: 1px solid rgba(183, 146, 87, 0.2);
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  padding: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: relative;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.sales-modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.sales-modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sales-modal-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.sales-modal-logo span {
  font-family: 'Aleo', serif;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.sales-modal-logo strong {
  color: #B79257;
}

.sales-modal-header h3 {
  font-family: 'Aleo', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}

.sales-modal-header p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  margin-bottom: 28px;
}

.sales-form-group {
  margin-bottom: 20px;
}

.sales-form-group label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.sales-form-group input,
.sales-form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: white;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.sales-form-group input:focus,
.sales-form-group textarea:focus {
  outline: none;
  border-color: #B79257;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(183, 146, 87, 0.15);
}

.sales-form-group textarea {
  height: 100px;
  resize: none;
  line-height: 1.5;
}

.sales-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

.btn-sales-cancel {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-sales-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.btn-sales-submit {
  background: #B79257;
  border: none;
  border-radius: 8px;
  color: white;
  padding: 12px 24px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.2s;
  min-width: 140px;
  position: relative;
}

.btn-sales-submit:hover {
  background: #C49F65;
}

.btn-sales-submit:active {
  transform: scale(0.98);
}

.btn-sales-submit.loading .btn-text {
  visibility: hidden;
  opacity: 0;
}

.btn-sales-submit.loading .btn-spinner {
  display: block;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: sales-spin 0.8s linear infinite;
  position: absolute;
}

@keyframes sales-spin {
  to { transform: rotate(360deg); }
}

/* ── SUCCESS STATE ── */
.sales-success-content {
  text-align: center;
  padding: 20px 0;
}

.sales-success-icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.sales-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(5, 150, 105, 0.15);
  border: 1px solid rgba(5, 150, 105, 0.3);
  border-radius: 50%;
  color: #34D399;
  font-size: 30px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sales-popCheck 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes sales-popCheck {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.sales-success-content h3 {
  font-family: 'Aleo', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.sales-success-p1 {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.sales-success-p2 {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 32px;
}

.btn-sales-success-close {
  background: #B79257;
  border: none;
  border-radius: 8px;
  color: white;
  padding: 12px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
}

.btn-sales-success-close:hover {
  background: #C49F65;
}
