/* ==========================================================================
   TF Tech Solutions — Custom Stylesheet (css/style.css)
   Theme: Dark Navy (#0B132B / #0F172A) + Electric Blue/Cyan (#00D2FF / #0284C7)
   ========================================================================== */

:root {
  --navy-950: #060b19;
  --navy-900: #0b132b;
  --navy-800: #152244;
  --cyan-400: #00d2ff;
  --cyan-500: #06b6d4;
  --blue-600: #0284c7;
  --whatsapp: #15803d;
  --whatsapp-dark: #166534;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #f8fafc;
  color: #0f172a;
  overflow-x: hidden;
}

/* Tech grid background pattern for hero & dark banners */
.bg-tech-grid {
  background-color: var(--navy-900);
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(0, 210, 255, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 15% 85%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* Subtle card elevation & hover transition */
.tech-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tech-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -8px rgba(11, 19, 43, 0.1), 0 4px 10px -4px rgba(0, 210, 255, 0.12);
  border-color: #38bdf8;
}

/* Active filter button state */
.filter-btn.active {
  background-color: #0b132b;
  color: #00d2ff;
  border-color: #0b132b;
  box-shadow: 0 4px 12px rgba(11, 19, 43, 0.18);
}

/* Floating WhatsApp CTA Button - Compact Circular FAB */
.whatsapp-float {
  position: fixed !important;
  bottom: 1rem !important;
  right: 1rem !important;
  z-index: 60 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px !important;
  max-width: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px -4px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.18) !important;
  border: 2px solid rgba(255, 255, 255, 0.25) !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

@media (min-width: 640px) {
  .whatsapp-float {
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
  }
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.08) !important;
  box-shadow: 0 12px 28px -4px rgba(37, 211, 102, 0.65), 0 6px 14px rgba(0, 0, 0, 0.22) !important;
}

.whatsapp-float:active {
  transform: translateY(0) scale(0.95) !important;
}

.whatsapp-float svg {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  fill: currentColor !important;
  transition: transform 0.25s ease !important;
  margin: auto !important;
}

.whatsapp-float:hover svg {
  transform: scale(1.08) !important;
}

/* Online status pulse indicator */
.whatsapp-float::after {
  content: '';
  position: absolute;
  top: 1px;
  right: 1px;
  width: 11px;
  height: 11px;
  background-color: #22c55e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: whatsappPulse 2s infinite;
  pointer-events: none;
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Hide all text inside the button */
.whatsapp-float span {
  display: none !important;
}

/* Subtle fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeInUp 0.35s ease-out forwards;
}

/* Custom focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan-400);
  outline-offset: 2px;
}

/* Custom dark scrollbar for quote form dropdown menus */
#quote-service-dropdown::-webkit-scrollbar,
#quote-brand-dropdown::-webkit-scrollbar,
#quote-model-dropdown::-webkit-scrollbar {
  width: 6px;
}

#quote-service-dropdown::-webkit-scrollbar-track,
#quote-brand-dropdown::-webkit-scrollbar-track,
#quote-model-dropdown::-webkit-scrollbar-track {
  background: #0f172a;
}

#quote-service-dropdown::-webkit-scrollbar-thumb,
#quote-brand-dropdown::-webkit-scrollbar-thumb,
#quote-model-dropdown::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

#quote-service-dropdown::-webkit-scrollbar-thumb:hover,
#quote-brand-dropdown::-webkit-scrollbar-thumb:hover,
#quote-model-dropdown::-webkit-scrollbar-thumb:hover {
  background: #00d2ff;
}

/* Quote form combobox dropdown menus - 100% Solid Opaque Styling (Crucial for Mobile WebKit & Chrome) */
#quote-service-dropdown,
#quote-brand-dropdown,
#quote-model-dropdown {
  background-color: #0f172a !important;
  background: #0f172a !important;
  opacity: 1 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  border: 1px solid #334155 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.95), 0 10px 10px -5px rgba(0, 0, 0, 0.8) !important;
  z-index: 100 !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

#quote-service-dropdown > div,
#quote-brand-dropdown > div,
#quote-model-dropdown > div {
  background-color: #0f172a !important;
}

/* Prevent iOS Safari 16px auto-zoom glitch and adjust mobile quote form styling */
@media (max-width: 640px) {
  #home-quote-form input,
  #home-quote-form textarea {
    font-size: 16px !important;
  }
  #quote-service-dropdown,
  #quote-brand-dropdown,
  #quote-model-dropdown {
    max-height: 220px !important;
  }
}

/* Utility to hide scrollbar for smooth mobile touch swipe */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Quote form combobox chevron smooth rotation */
.combobox-chevron {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.combobox-chevron.rotate-180 {
  transform: rotate(180deg);
}

/* ==========================================================================
   Phone Test Kit Component Styles (No external libraries, pure CSS)
   Theme: Dark Navy (#0B132B) + Electric Cyan (#00D2FF) + White
   ========================================================================== */

/* Fullscreen / Full-bleed modal overlay */
.ptk-modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 9999;
  background-color: rgba(6, 11, 25, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: #ffffff;
}

.ptk-modal-overlay.hidden {
  display: none !important;
}

/* Big touch-friendly verdict buttons (min 48px) */
.ptk-btn-pass {
  min-height: 52px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.875rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}
.ptk-btn-pass:hover, .ptk-btn-pass:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.ptk-btn-fail {
  min-height: 52px;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 0.875rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.3);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  user-select: none;
}
.ptk-btn-fail:hover, .ptk-btn-fail:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.45);
}

.ptk-btn-skip {
  min-height: 48px;
  background-color: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  padding: 0.625rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.ptk-btn-skip:hover {
  background-color: rgba(71, 85, 105, 0.8);
  color: #ffffff;
}

/* Screen Test Full-Bleed Overlay */
.ptk-screen-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

/* Touch Grid Matrix */
.ptk-touch-grid {
  display: grid;
  width: 100vw;
  height: 100dvh;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: #0f172a;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.ptk-touch-cell {
  background-color: #1e293b;
  border: 1px solid #0f172a;
  transition: background-color 0.05s ease;
  box-sizing: border-box;
}
.ptk-touch-cell.touched {
  background-color: #10b981 !important;
}
.ptk-touch-cell.dead {
  background-color: #f43f5e !important;
  animation: pulseDead 1s infinite alternate;
}
@keyframes pulseDead {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

/* Multi-touch interactive area */
.ptk-multitouch-box {
  width: 100%;
  height: 380px;
  background: radial-gradient(circle at center, #1e293b 0%, #0b132b 100%);
  border: 2px dashed #00d2ff;
  border-radius: 1.25rem;
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ptk-touch-dot {
  position: absolute;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.8) 0%, rgba(2, 132, 199, 0.4) 70%, transparent 100%);
  border: 2px solid #00d2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  pointer-events: none;
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.6);
  transform: scale(1);
  animation: touchPulse 1.2s infinite;
}
@keyframes touchPulse {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.9; }
}

/* 2D Bubble Level */
.ptk-level-gauge {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, #0b132b 60%, #1e293b 100%);
  border: 3px solid #334155;
  position: relative;
  margin: 0 auto;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 210, 255, 0.15);
}
.ptk-level-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px dashed #64748b;
  pointer-events: none;
}
.ptk-level-cross-h {
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  height: 1px;
  background-color: rgba(148, 163, 184, 0.25);
  pointer-events: none;
}
.ptk-level-cross-v {
  position: absolute;
  left: 50%;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background-color: rgba(148, 163, 184, 0.25);
  pointer-events: none;
}
.ptk-level-bubble {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #00d2ff 0%, #0284c7 80%);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.7);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, background 0.2s ease;
}
.ptk-level-bubble.centered {
  background: radial-gradient(circle at 35% 35%, #10b981 0%, #059669 80%);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.9);
}

/* Audio Level Meter */
.ptk-audio-meter-track {
  width: 100%;
  height: 24px;
  background-color: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
  border: 1px solid #334155;
  position: relative;
}
.ptk-audio-meter-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #00d2ff 70%, #f43f5e 100%);
  border-radius: 9999px;
  transition: width 0.05s ease-out;
}

/* Report Status Badges */
.ptk-badge-pass {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ptk-badge-fail {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.3);
}
.ptk-badge-skip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  background-color: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Floating WhatsApp FAB - matching global standard */
.ptk-whatsapp-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: 0.875rem;
  padding: 0.875rem 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ptk-whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
}

/* Standalone Layout & Component Classes for phone-test.html */
.ptk-main-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .ptk-main-wrap {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .ptk-main-wrap {
    padding: 0 2rem;
  }
}

.ptk-hero-card {
  background: #0B132B;
  background-image: 
    radial-gradient(circle at 85% 15%, rgba(0, 210, 255, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 15% 85%, rgba(2, 132, 199, 0.15) 0%, transparent 50%);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 1.5rem;
  padding: 2.25rem 1.5rem;
  color: #ffffff;
  text-align: center;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 20px 40px -15px rgba(11, 19, 43, 0.5);
}

@media (min-width: 640px) {
  .ptk-hero-card {
    padding: 3rem 2.5rem;
  }
}

.ptk-test-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .ptk-test-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ptk-test-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ptk-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ptk-card:hover {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 12px 24px -8px rgba(11, 19, 43, 0.12), 0 4px 8px -2px rgba(0, 210, 255, 0.1);
}

.ptk-launch-btn {
  width: 100%;
  min-height: 48px;
  background: #0B132B;
  color: #00D2FF;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 0.75rem;
  padding: 0.625rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid rgba(0, 210, 255, 0.3);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  text-decoration: none;
}

.ptk-launch-btn:hover {
  background: #152244;
  color: #ffffff;
  transform: translateY(-1px);
}

.ptk-report-card {
  background: #0B132B;
  border: 1px solid #1e293b;
  border-radius: 1.5rem;
  padding: 1.75rem;
  color: #ffffff;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .ptk-report-card {
    padding: 2.5rem;
  }
}

.ptk-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid rgba(51, 65, 85, 0.7);
  background: rgba(15, 23, 42, 0.7);
}

.ptk-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.ptk-table th {
  background: rgba(11, 19, 43, 0.9);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #334155;
}

.ptk-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  color: #e2e8f0;
}

/* FAQ Details styling */
.ptk-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.75rem;
  transition: border-color 0.2s ease;
}

.ptk-faq-item[open] {
  border-color: #38bdf8;
}

.ptk-faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.ptk-faq-summary::-webkit-details-marker {
  display: none;
}

.ptk-faq-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: #475569;
  border-top: 1px solid #f1f5f9;
  padding-top: 0.75rem;
}
