/* ==========================================================================
   ApexQuotes - Ping Post Lead Generation Form Styles
   Optimized for High Conversion & Senior Demographics
   ========================================================================== */

.pingpost-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.16);
  border: 2px solid #e2e8f0;
  padding: 30px 26px;
  position: relative;
  z-index: 10;
  max-width: 520px;
  margin: 0 auto;
}

.pingpost-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e40af;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.35);
}

.pingpost-header {
  text-align: center;
  margin-top: 6px;
  margin-bottom: 20px;
}

.pingpost-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f294a;
  line-height: 1.25;
  margin-bottom: 6px;
}

.pingpost-subtitle {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

/* Step Progress Indicator */
.pingpost-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  position: relative;
  padding: 0 10px;
}

.pingpost-steps::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 45px;
  right: 45px;
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
}

.pingpost-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.pingpost-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #cbd5e1;
  color: #64748b;
  font-weight: 800;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.pingpost-step-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.pingpost-step.active .pingpost-step-circle {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.18);
}

.pingpost-step.active .pingpost-step-label {
  color: #1e40af;
}

.pingpost-step.completed .pingpost-step-circle {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.pingpost-step.completed .pingpost-step-label {
  color: #059669;
}

/* Form Groups & Inputs */
.pingpost-form-group {
  margin-bottom: 14px;
}

.pingpost-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.pingpost-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f294a;
  margin-bottom: 6px;
}

.pingpost-label span.req {
  color: #dc2626;
  margin-left: 2px;
}

.pingpost-input,
.pingpost-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.98rem;
  font-family: inherit;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #0f172a;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.pingpost-input:focus,
.pingpost-select:focus {
  outline: none;
  border-color: #1e40af;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.15);
}

/* Custom Radio Grid */
.pingpost-radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pingpost-radio-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  background: #f8fafc;
  color: #334155;
  transition: all 0.2s ease;
  user-select: none;
}

.pingpost-radio-box input[type="radio"] {
  display: none;
}

.pingpost-radio-box:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.pingpost-radio-box.selected,
.pingpost-radio-box:has(input[type="radio"]:checked) {
  border-color: #1e40af;
  background: #eff6ff;
  color: #1e40af;
  box-shadow: 0 0 0 2px #1e40af;
}

/* Rate Preview Pill */
.pingpost-rate-pill {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Action Buttons */
.pingpost-btn-primary {
  width: 100%;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: #ffffff;
  border: none;
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.32);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.pingpost-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(30, 64, 175, 0.42);
}

.pingpost-btn-prev {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pingpost-btn-prev:hover {
  color: #0f172a;
}

/* TCPA Consent Box */
.pingpost-tcpa {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 8px;
}

.pingpost-tcpa input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1e40af;
  flex-shrink: 0;
  cursor: pointer;
}

.pingpost-tcpa-label {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
  cursor: pointer;
}

/* Animated Ping Loading State */
.pingpost-loader {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.pingpost-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e2e8f0;
  border-top-color: #1e40af;
  border-radius: 50%;
  animation: pingpost-spin 0.8s linear infinite;
  margin: 0 auto 18px;
}

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

.pingpost-loader h4 {
  font-size: 1.15rem;
  color: #0f294a;
  margin-bottom: 6px;
  font-weight: 800;
}

.pingpost-loader p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

/* Confirmation Container */
.pingpost-confirmation {
  display: none;
  text-align: center;
  padding: 10px 0;
}

.pingpost-conf-icon {
  width: 64px;
  height: 64px;
  background: #ecfdf5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
  box-shadow: 0 0 0 8px rgba(5, 150, 105, 0.12);
}

.pingpost-conf-title {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f294a;
  margin-bottom: 8px;
}

.pingpost-conf-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 18px;
}

.pingpost-conf-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: left;
}

.pingpost-conf-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 4px 0;
}

.pingpost-conf-item span.lbl {
  color: #64748b;
  font-weight: 600;
}

.pingpost-conf-item span.val {
  color: #0f294a;
  font-weight: 700;
}

.pingpost-conf-cta {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(5, 150, 105, 0.35);
}

.pingpost-conf-cta:hover {
  transform: translateY(-2px);
}

/* Security Trust Badges under Form */
.pingpost-trust-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 0.72rem;
  color: #94a3b8;
  margin-top: 14px;
}

.pingpost-trust-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 576px) {
  .pingpost-card {
    padding: 24px 16px;
    border-radius: 16px;
  }
  .pingpost-form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pingpost-title {
    font-size: 1.35rem;
  }
}
