/* Modal Backdrop */
.innovix-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  display: grid;
  place-items: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  padding: 20px;
}

.innovix-modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Modal Card */
.innovix-modal-card {
  background: #ffffff;
  padding: 36px 32px;
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.08),
    0 20px 25px -5px rgba(15, 23, 42, 0.1),
    0 8px 10px -6px rgba(15, 23, 42, 0.04);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
  box-sizing: border-box;
}

.innovix-modal-backdrop.is-active .innovix-modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Icon */
.innovix-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-size: 24px;
  border: 1px solid transparent;
}

.innovix-modal-icon.success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}

.innovix-modal-icon.error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}

/* Modal Typography */
.innovix-modal-title {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin-bottom: 8px;
}

.innovix-modal-body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.55;
}

/* Action Button */
.innovix-modal-btn {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 24px;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.innovix-modal-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.innovix-modal-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Form Validation States */
.form-input-container.has-error input,
.form-input-container.has-error select,
.form-input-container.has-error textarea {
  border: 1.5px solid #dc2626 !important;
  background-color: #fef2f2 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
  outline: none;
}

.field-error-hint {
  color: #dc2626;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 12px;
  font-weight: 500;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
}

/* Dropdown Select Fixes */
.contact-select-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.form-field-select {
  width: 100%;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  border-radius: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
