:root {
    --primary-color: #003366; /* Police Blue */
    --primary-dark: #001f3f;
    --secondary-color: #fca311; /* Alert/Highlight */
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --bg-dark: #111827;
    --text-color: #1f2937;
    --text-light: #e5e7eb;
    --border-color: #d1d5db;
    --error-color: #dc2626;
    --success-color: #16a34a;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover, a:focus {
    text-decoration: underline;
}

/* Header */
.site-header {
    background-color: var(--bg-color);
    border-bottom: 2px solid var(--primary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
}

.main-nav a:not(.btn-outline):hover, .main-nav a:not(.btn-outline):focus {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    text-decoration: none;
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-dark);
    border-color: var(--border-color);
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: var(--border-color);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover, .btn-outline:focus {
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(to right, #f8fafc, #e2e8f0);
    border-bottom: 1px solid var(--border-color);
}

.hero-inner {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.lead {
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
}

.text-light {
    color: #9ca3af;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
}

.trust-marks {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 600;
}

/* Typography & Layout Utilities */
.section {
    padding: 60px 0;
}

.light-bg {
    background-color: var(--bg-light);
}

.dark-bg {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.dark-bg h2, .dark-bg h3 {
    color: #ffffff;
}

.border-top {
    border-top: 1px solid var(--border-color);
}

.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.align-center {
    align-items: center;
}

/* Feature & Detail Blocks */
.feature-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-card-highlight {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 30px;
    border-radius: 6px;
}

.feature-card-highlight h3 {
    color: #ffffff;
}

.check-list {
    list-style: none;
}

.check-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}

.timeline-step {
    background: rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: var(--secondary-color);
    color: var(--bg-dark);
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Form Styles */
.form-wrapper {
    background: #ffffff;
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2);
}

.privacy-note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 15px;
    text-align: center;
}

/* Alerts */
.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-error {
    background-color: #fef2f2;
    color: var(--error-color);
    border: 1px solid #fecaca;
}

.alert-success {
    background-color: #f0fdf4;
    color: var(--success-color);
    border: 1px solid #bbf7d0;
}

/* FAQ Accordion Simulation */
.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    margin-bottom: 10px;
}

/* Footer */
.site-footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 50px 0 20px;
}

.site-footer a {
    color: #9ca3af;
}

.site-footer a:hover, .site-footer a:focus {
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-grid h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid ul li {
    margin-bottom: 10px;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    display: block;
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-2, .grid-3, .timeline, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .trust-marks {
        flex-direction: column;
        gap: 10px;
    }
}

/* ── Chat widget button — Police pulse ──────────────────────── */
/* Doubled selector beats widget's (0,1,0) specificity without !important        */
/* so @keyframes can animate background + box-shadow freely — no orange glitch   */
@keyframes police-pulse {
  0%, 100% {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    box-shadow: 0 6px 28px rgba(30,64,175,0.65), 0 0 0 5px rgba(30,64,175,0.35);
  }
  50% {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 100%);
    box-shadow: 0 6px 28px rgba(220,38,38,0.65), 0 0 0 5px rgba(220,38,38,0.35);
  }
}
.ims-chatwidget-btn.ims-chatwidget-btn {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
  box-shadow: 0 6px 28px rgba(30,64,175,0.65), 0 0 0 5px rgba(30,64,175,0.35);
  border: 2px solid rgba(255,255,255,0.22) !important;
  animation: police-pulse 3s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.ims-chatwidget-btn.ims-chatwidget-btn:hover {
  animation: none;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 0 0 6px rgba(30,64,175,0.25), 0 14px 44px rgba(59,130,246,0.75);
  transform: scale(1.10) translateY(-3px);
}
.ims-chatwidget-btn .ims-cwi.ims-cwi-default:before {
  color: #ffffff !important;
  text-shadow: 0 0 14px rgba(147,197,253,1) !important;
}
@keyframes police-orbit {
    0%   { transform: rotate(0deg) scale(1); opacity:.6; }
    50%  { transform: rotate(180deg) scale(1.09); opacity:1; }
    100% { transform: rotate(360deg) scale(1); opacity:.6; }
}
@keyframes police-spark {
    0%,100% { opacity:.45; filter: drop-shadow(0 0 0 rgba(30,64,175,.4)); }
    50%     { opacity:1;   filter: drop-shadow(0 0 9px rgba(220,38,38,.8)); }
}
.ims-chatwidget-btn {
    overflow: visible !important;
    isolation: isolate;
}
.ims-chatwidget-btn::before,
.ims-chatwidget-btn::after {
    content: "";
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}
.ims-chatwidget-btn::before {
    inset: -12px;
    background:
        radial-gradient(circle at 16% 24%, rgba(147,197,253,.95) 0 2px, transparent 3px),
        radial-gradient(circle at 84% 24%, rgba(220,38,38,.95) 0 2px, transparent 3px),
        radial-gradient(circle at 24% 82%, rgba(96,165,250,.95) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 78%, rgba(248,113,113,.95) 0 2px, transparent 3px);
    animation: police-spark 1.55s ease-in-out infinite;
}
.ims-chatwidget-btn::after {
    inset: -7px;
    border: 1.5px dashed rgba(255,255,255,.52);
    opacity: .8;
    animation: police-orbit 4.4s linear infinite;
}
.ims-chatwidget-btn:hover::before { opacity: 1; transform: scale(1.08); }
.ims-chatwidget-btn:hover::after  { opacity: 1; animation-duration: 2.3s; }
@media (prefers-reduced-motion: reduce) {
    .ims-chatwidget-btn::before,
    .ims-chatwidget-btn::after { animation: none !important; }
}
