@font-face {
  font-family: "Nunito";
  src: url(Nunito-VariableFont_wght.ttf) format("truetype");
  font-weight: 600;
  font-style: normal;
}

/* --- Standalone BookADemo Interface Architecture --- */
.demo-page-container {
  width: 100%;
  min-height: 80vh;
  background-color: #fafbfd; /* Clean background slate matching analytics decks */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3.5rem 1.5rem;
  box-sizing: border-box;
}

.demo-card-frame {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  padding: 2.5rem;
  box-sizing: border-box;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  text-align: center;
}

.demo-card-frame h2 {
  margin: 0 0 0.35rem 0;
  font-size: 1.5rem;
  color: #1a1a2e;
  font-weight: 850;
}

.demo-card-frame p.subtitle {
  margin: 0 0 2.5rem 0;
  font-size: 0.88rem;
  color: #718096;
  font-weight: 600;
  line-height: 1.4;
}

/* Two Column Grid Matrix alignment track */
.demo-grid-system {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-input-group label {
  font-size: 0.78rem;
  font-weight: 800;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input-group input,
.form-input-group select {
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  outline: none;
  color: #2d3748;
  font-weight: 600;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

.form-input-group input:focus,
.form-input-group select:focus {
  border-color: #0f6e56; /* Premium Praxes Brand Green accent ring */
}

/* Lock out mutations on pre-filled read-only text items */
.form-input-group input[readonly] {
  background-color: #f7fafc;
  color: #718096;
  cursor: not-allowed;
  border-color: #e2e8f0;
}

.form-submit-trigger {
  background-color: #0f6e56;
  color: #ffffff;
  border: none;
  width: 100%;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.form-submit-trigger:hover {
  background-color: #6b9e8f;
}

/* --- Integrated Success Message Card Sheet --- */
.firm-alert-box {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2rem;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: firmCardReveal 0.25s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes firmCardReveal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.alert-icon-circle {
  font-size: 3.5rem;
  color: #0f6e56;
  margin-bottom: 1.25rem;
}

.alert-text-payload {
  font-size: 1.05rem;
  color: #2d3748;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 600;
  max-width: 520px;
}

.alert-text-payload strong {
  color: #1a1a2e;
  font-weight: 800;
}

.alert-dismiss-btn {
  background-color: #1a1a2e;
  color: #ffffff;
  border: none;
  width: 100%;
  max-width: 200px;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.alert-dismiss-btn:hover {
  background-color: #2d2d44;
}

/* --- Responsive Media Viewport Targets --- */
@media (max-width: 640px) {
  .demo-grid-system {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
  .demo-card-frame {
    padding: 1.75rem 1.25rem;
  }
  .demo-page-container {
    padding: 1.5rem 1rem;
  }
}

/* --- Active Validation Error States --- */
.form-input-group.error-state input,
.form-input-group.error-state select {
  border-color: #e53e3e; /* Solid crimson red border */
  background-color: #fff5f5; /* Light red tint */
}

.form-input-group.error-state label {
  color: #c53030;
}

/* Dynamic error message label added via JS */
.error-message-label {
  color: #e53e3e;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.25rem;
  display: block;
  animation: fieldShake 0.2s ease;
}

@keyframes fieldShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
  75% { transform: translateX(-4px); }
  100% { transform: translateX(0); }
}