/**
 * UX, CRO & Call Conversion Enhancements CSS
 * Appliance Repair Orland Park
 */

/* ==========================================================================
   1. LIVE DISPATCH STATUS PILL
   ========================================================================== */
.live-dispatch-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #EFFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
  margin-bottom: 0.85rem;
}

.live-dispatch-badge .live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   2. REASSURANCE TRUST BADGES STRIP (FLANKING CTAs)
   ========================================================================== */
.reassurance-trust-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.25rem;
}

.reassurance-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: #334E68;
}

.reassurance-trust-pill svg {
  color: #1677FF;
  flex-shrink: 0;
}

.reassurance-trust-pill.stars svg {
  color: #F59E0B;
}

/* ==========================================================================
   3. FAST DISPATCH BOOKING REQUEST FORM
   ========================================================================== */
.fast-dispatch-card {
  background: #FFFFFF;
  border: 1px solid #D9E2EC;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 12px 36px rgba(16, 42, 67, 0.08);
  position: relative;
  overflow: hidden;
}

.fast-dispatch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1677FF, #F97316);
}

.fast-dispatch-header {
  margin-bottom: 1.5rem;
}

.fast-dispatch-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #102A43;
  margin: 0 0 0.35rem;
}

.fast-dispatch-sub {
  font-size: 0.9rem;
  color: #627D98;
  margin: 0;
}

.fast-dispatch-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .fast-dispatch-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fast-dispatch-grid .span-full {
    grid-column: span 2;
  }
}

.fast-input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334E68;
  margin-bottom: 0.35rem;
}

.fast-input-group input,
.fast-input-group select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.925rem;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  color: #102A43;
  background: #F8FAFC;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.fast-input-group input:focus,
.fast-input-group select:focus {
  outline: none;
  border-color: #1677FF;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.15);
}

.fast-submit-btn {
  width: 100%;
  background: #F97316;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.fast-submit-btn:hover {
  background: #EA580C;
  transform: translateY(-1px);
}

.fast-form-microcopy {
  font-size: 0.785rem;
  color: #627D98;
  text-align: center;
  margin-top: 0.65rem;
  display: block;
}

.fast-form-success {
  display: none;
  background: #ECFDF5;
  border: 2px solid #10B981;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
}

.fast-form-success h4 {
  color: #065F46;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.fast-form-success p {
  color: #047857;
  font-size: 0.925rem;
  margin: 0 0 1rem;
}

/* ==========================================================================
   4. INTERACTIVE APPLIANCE SYMPTOM CHECKER
   ========================================================================== */
.symptom-checker-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 12px 32px rgba(16, 42, 67, 0.06);
  margin-top: 2rem;
}

.symptom-step-title {
  font-size: 0.875rem;
  font-weight: 800;
  color: #1677FF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.symptom-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
}

.symptom-appliance-btn,
.symptom-issue-btn {
  background: #F1F5F9;
  border: 1.5px solid #E2E8F0;
  color: #334E68;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.symptom-appliance-btn:hover,
.symptom-issue-btn:hover {
  background: #E0F2FE;
  border-color: #BAE6FD;
  color: #0369A1;
}

.symptom-appliance-btn.active,
.symptom-issue-btn.active {
  background: #1677FF;
  border-color: #1677FF;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(22, 119, 255, 0.25);
}

.symptom-result-box {
  background: #F8FAFC;
  border: 2px solid #BAE3FF;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .symptom-result-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.symptom-result-info h4 {
  color: #102A43;
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.symptom-result-info p {
  color: #486581;
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   5. INTERACTIVE BRAND CERTIFICATION GRID
   ========================================================================== */
.brand-certified-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .brand-certified-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 992px) {
  .brand-certified-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.brand-card-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand-card-item:hover {
  transform: translateY(-2px);
  border-color: #1677FF;
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.08);
}

.brand-name-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #102A43;
}

.brand-tag-pill {
  font-size: 0.725rem;
  font-weight: 700;
  color: #0369A1;
  background: #E0F2FE;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

/* ==========================================================================
   6. DESKTOP STICKY QUICK-CALL HEADER BAR
   ========================================================================== */
.desktop-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(16, 42, 67, 0.95);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  padding: 0.65rem 1.5rem;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.desktop-sticky-header.visible {
  transform: translateY(0);
}

@media (max-width: 991px) {
  .desktop-sticky-header {
    display: none !important;
  }
}

.desktop-sticky-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.desktop-sticky-logo {
  font-weight: 800;
  font-size: 0.95rem;
  color: #FFFFFF;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.desktop-sticky-tag {
  font-size: 0.8125rem;
  color: #BAE3FF;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.desktop-sticky-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.desktop-sticky-call-btn {
  background: #F97316;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 0.875rem;
  padding: 0.5rem 1.15rem;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.2s;
}

.desktop-sticky-call-btn:hover {
  background: #EA580C;
}

.desktop-sticky-req-btn {
  background: transparent;
  color: #BAE3FF;
  border: 1px solid rgba(186, 227, 255, 0.4);
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.desktop-sticky-req-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

/* ==========================================================================
   9. FORM OUT OF SERVICE / DIRECT PHONE DISPATCH STYLES
   ========================================================================== */
.form-offline-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 37, 64, 0.78);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.form-offline-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.form-offline-modal {
  background: #FFFFFF;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 24px 64px rgba(8, 42, 70, 0.4);
  text-align: center;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.form-offline-modal-overlay.is-active .form-offline-modal {
  transform: translateY(0) scale(1);
}

.form-offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.form-offline-badge .offline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EA580C;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.6);
  animation: pulse-ring 1.8s infinite;
}

.form-offline-title {
  color: #0F172A;
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0 0 0.85rem;
  line-height: 1.25;
}

.form-offline-text {
  color: #475569;
  font-size: 0.965rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.form-offline-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: #F97316;
  color: #FFFFFF !important;
  font-size: 1.2rem;
  font-weight: 800;
  padding: 1.05rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
  transition: all 0.2s ease;
  width: 100%;
}

.form-offline-call-btn:hover {
  background: #EA580C;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.48);
}

.form-offline-subtext {
  display: block;
  font-size: 0.825rem;
  color: #64748B;
  margin-top: 0.85rem;
}

.form-offline-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #64748B;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: all 0.15s ease;
}

.form-offline-close-btn:hover {
  color: #0F172A;
  background: #E2E8F0;
}

/* Inline banner placed directly above inputs */
.form-inline-notice {
  background: #FFF7ED;
  border: 1.5px solid #FDBA74;
  border-radius: 12px;
  padding: 1.15rem;
  margin-bottom: 1.25rem;
  display: none;
  animation: slideDownNotice 0.3s ease;
  text-align: left;
}

@keyframes slideDownNotice {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-inline-notice.is-visible {
  display: block;
}

.form-inline-notice-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #C2410C;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.form-inline-notice-body {
  color: #7C2D12;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.form-inline-notice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F97316;
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}

.form-inline-notice-btn:hover {
  background: #EA580C;
}

.form-locked-input {
  background-color: #F8FAFC !important;
  cursor: pointer !important;
  border-color: #FDBA74 !important;
}

