/* Infofase landing lead popup */
#if-lead-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  animation: if-lead-enter 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s both;
}
#if-lead-fab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #f26522 0%, #e04e0e 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(242, 101, 34, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#if-lead-fab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(242, 101, 34, 0.55);
}
#if-lead-fab-btn svg {
  flex-shrink: 0;
}
#if-lead-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
#if-lead-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
#if-lead-modal {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
#if-lead-overlay.is-open #if-lead-modal {
  transform: translateY(0) scale(1);
}
#if-lead-head {
  background: linear-gradient(135deg, #1a2744 0%, #243b5c 100%);
  color: #fff;
  padding: 22px 24px 20px;
  position: relative;
}
#if-lead-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
}
#if-lead-head p {
  margin: 0;
  font-size: 0.88rem;
  opacity: 0.85;
  line-height: 1.5;
}
#if-lead-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
}
#if-lead-close:hover {
  background: rgba(255, 255, 255, 0.22);
}
#if-lead-form {
  padding: 22px 24px 24px;
}
.if-lead-row {
  margin-bottom: 14px;
}
.if-lead-row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 6px;
}
.if-lead-row input,
.if-lead-row textarea,
.if-lead-row select {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid #dde3ea;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: #1a1a1a;
  background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.if-lead-row input:focus,
.if-lead-row textarea:focus,
.if-lead-row select:focus {
  outline: none;
  border-color: #f26522;
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.15);
  background: #fff;
}
.if-lead-row textarea {
  min-height: 88px;
  resize: vertical;
}
.if-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.if-lead-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 18px;
  font-size: 0.8rem;
  color: #555;
  line-height: 1.45;
}
.if-lead-check input {
  margin-top: 3px;
  flex-shrink: 0;
}
.if-lead-check a {
  color: #c75a1a;
}
#if-lead-submit {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: #f26522;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
#if-lead-submit:hover:not(:disabled) {
  background: #e04e0e;
}
#if-lead-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
#if-lead-status {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.45;
  text-align: center;
}
#if-lead-status.is-ok {
  color: #0d7a45;
}
#if-lead-status.is-err {
  color: #c0392b;
}
.if-lead-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@keyframes if-lead-enter {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (max-width: 767px) {
  #if-lead-fab {
    left: 14px;
    bottom: 14px;
  }
  #if-lead-fab-btn {
    padding: 12px 16px;
    font-size: 0.88rem;
  }
  #if-lead-fab-label {
    display: none;
  }
  .if-lead-grid {
    grid-template-columns: 1fr;
  }
  #if-lead-overlay {
    padding: 12px;
    align-items: flex-end;
  }
  #if-lead-modal {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }
}
