/* ==========================================
   CONTACT FORM PARALLAX SECTION
   ========================================== */

.contact-parallax {
    position: relative;
    background-image: url('../img/contact.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    
    /* Zero top padding pulls the card flush to the top */
    padding: 0 20px 100px 20px; 
    overflow: hidden;
}

@media (max-width: 768px) {
    .contact-parallax {
        background-attachment: scroll;
        padding: 0 15px 80px 15px;
    }
}


/* ==========================================
   SEAMLESS NAV-TO-SECTION FADE OVERLAY
   ========================================== */

.contact-parallax::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--bg-color, #0b0f19) 0%,
        rgba(11, 15, 25, 0.85) 12%,
        rgba(11, 15, 25, 0.45) 35%,
        rgba(11, 15, 25, 0.45) 75%,
        var(--bg-color, #0b0f19) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Content above overlay */
.contact-parallax .contact-section {
    position: relative;
    z-index: 2;
}

/* ==========================================
   CONTACT FORM CARD & THEME SUPPORT
   ========================================== */

.contact-form-card {
    max-width: 950px;
    margin: auto;
    padding: 40px;
    border-radius: 24px;
    background: var(--sidebar-bg) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--sidebar-border) !important;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow:
        0 15px 40px rgba(0,0,0,.35),
        0 40px 100px rgba(0,0,0,.40);
}

/* Light Theme */
[data-theme="light"] .contact-form-card {
    background: #ffffff !important;
}

/* Dark Theme */
[data-theme="dark"] .contact-form-card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.03),
            rgba(255,255,255,.01)
        ) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ==========================================
   FORM TITLE & SUBTITLE
   ========================================== */
/* ==========================================
   FORM TITLE & SUBTITLE
   ========================================== */
.contact-form-title {
    position: relative;
    display: inline-block;

    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 1;
    letter-spacing: 0.08em;
    margin-bottom: 25px;
    text-transform: uppercase;

    /* Fill the lettering with your solid/gradient blue */
    background: linear-gradient(135deg, #0f2744, #1e3a5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Gold outline and clean drop shadows */
    -webkit-text-stroke: 1.5px #ffd700;
    
    text-shadow:
        -1px -1px 0 #ffd700,
         1px -1px 0 #ffd700,
        -1px  1px 0 #ffd700,
         1px  1px 0 #ffd700,
         0 4px 15px rgba(0,0,0,.5);

    filter:
        drop-shadow(0 0 10px rgba(255,215,0,.35))
        drop-shadow(0 0 20px rgba(255,215,0,.20));
}

.contact-form-subtitle {
    text-align: center;
    color: rgba(255,255,255,.92);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.contact-form-subtitle {
    text-align: center;
    color: rgba(255,255,255,.92);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

.contact-form-subtitle {
    text-align: center;
    color: rgba(255,255,255,.92);
    margin-bottom: 35px;
    font-size: 1.1rem;
}

/* ==========================================
   INPUTS & LABELS
   ========================================== */

.contact-form-card .form-label,

.fcf-form-class label {
    color: var(--text-color) !important;
    font-weight: 600;
}

.contact-form-card .form-control,
.contact-form-card .form-select,
.fcf-form-class input,
.fcf-form-class textarea {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--sidebar-border) !important;
    border-radius: 12px;
    transition: all .25s ease;
    padding: 14px;
}

/* Placeholder */
.contact-form-card .form-control::placeholder,
.contact-section .form-control::placeholder {
    color: var(--sidebar-text) !important;
}

/* Select Options */
.contact-form-card .form-select option,
.contact-section .form-select option {
    background: var(--sidebar-bg);
    color: var(--text-color);
}

/* Focus State */
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus,
.fcf-form-class input:focus,
.fcf-form-class textarea:focus {
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    border-color: #60a5fa !important;
    box-shadow:
        0 0 0 3px rgba(96,165,250,.15),
        0 0 25px rgba(255,215,0,.20) !important;
    outline: none;
}

/* Disabled */
.contact-section .form-control:disabled,
.contact-section .form-select:disabled {
    background-color: var(--sidebar-bg) !important;
    color: var(--sidebar-text) !important;
}

/* ==========================================
   FORM FULL WIDTH ALIGNMENTS
   ========================================== */

.contact-form-card .field {
    margin-bottom: 1.25rem;
}

.contact-form-card .control,
.contact-form-card #Department,
.contact-form-card #VioNumber,
.contact-form-card #Name,
.contact-form-card #Email,
.contact-form-card #Phone {
    width: 100% !important;
}

/* Button + Input groups */
.contact-form-card .btn-group {
    display: flex !important;
    width: 100%;
}

.contact-form-card .btn-group button {
    flex: 0 0 auto;
}

.contact-form-card .buttons,
.contact-form-card .form-group {
    width: 100%;
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */

#fcf-button,
.contact-form-card #submit-button,
.contact-form-card #fcf-button {
    width: 100%;
    background:
        linear-gradient(
            135deg,
            #0f2744,
            #1e3a5f
        ) !important;
    color: #ffd700 !important;
    border: 2px solid #ffd700 !important;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all .25s ease;
}

#fcf-button:hover,
.contact-form-card #submit-button:hover,
.contact-form-card #fcf-button:hover {
    background:
        linear-gradient(
            135deg,
            #ffd700,
            #fff3a0
        ) !important;
    color: #0f2744 !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255,215,0,.25);
}

/* ==========================================
   CAPTCHA & TURNSTILE
   ========================================== */

.cf-turnstile {
    background: var(--bg-color);
    border: 1px solid var(--sidebar-border);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.contact-form-card .input-group-text {
    background: var(--sidebar-bg) !important;
    color: var(--text-color) !important;
    border-color: var(--sidebar-border) !important;
}

#captcha-question {
    background: var(--sidebar-bg);
    color: var(--text-color);
    border: 1px solid var(--sidebar-border);
    min-width: 150px;
    justify-content: center;
}

#captcha-answer {
    background: var(--bg-color);
    color: var(--text-color);
    border-color: var(--sidebar-border);
}

#refresh-captcha {
    background: var(--sidebar-bg);
    color: var(--text-color);
    border-color: var(--sidebar-border);
}

/* ==========================================
   THANK YOU PANEL
   ========================================== */

#fcf-thank-you {
    padding: 30px;
    border-radius: 20px;
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.25);
    text-align: center;
}

#fcf-thank-you strong {
    font-size: 1.5rem;
    color: #34d399;
}

/* ==========================================
   BACK TO TOP FLOATING ARROW
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #0f2744;
    color: #ffd700;
    border: 2px solid #ffd700;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.back-to-top:hover {
    background-color: #ffd700;
    color: #0f2744;
    transform: translateY(-3px);
}

/* ==========================================
   MOBILE RESPONSIVENESS
   ========================================== */

@media (max-width: 768px) {
    .contact-parallax {
        background-attachment: scroll;
        padding: 120px 20px;
    }

    .contact-form-card {
        padding: 25px;
    }

    .contact-form-title {
        font-size: 1.5rem;
    }
}
/* ==========================================
   POLICE EMERGENCY ALERT WITH GLOWING ANIMATION
   ========================================== */

@keyframes emergencyGlow {
    0%, 100% {
        border-color: rgba(59, 130, 246, 0.45);
        box-shadow: 
            0 8px 24px rgba(29, 78, 216, 0.20),
            0 0 8px rgba(37, 99, 235, 0.25);
    }
    50% {
        border-color: rgba(96, 165, 250, 0.95);
        box-shadow: 
            0 8px 28px rgba(37, 99, 235, 0.45),
            0 0 22px rgba(59, 130, 246, 0.65);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 6px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 16px rgba(96, 165, 250, 0.9);
    }
}

.emergency-alert {
    background: linear-gradient(135deg, rgba(0, 0, 160, .22), #0000a0) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    border-left: 5px solid #1e3a8a !important;
    border-radius: 14px;
    color: var(--text-color, #ffffff) !important;
    padding: 16px 20px;
    
    /* Smooth 2.5s glowing loop */
    animation: emergencyGlow 2.5s ease-in-out infinite;
}

.emergency-icon {
    font-size: 2rem;
    color: #60a5fa; /* Vibrant police blue icon */
    flex-shrink: 0;
    animation: iconPulse 2.5s ease-in-out infinite;
}

.emergency-label {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd; /* Soft ice blue label */
    margin-bottom: 2px;
}

.emergency-content p {
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0.95;
}

.emergency-911 {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    margin-top: 2px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.emergency-911:hover {
    color: #93c5fd;
    transform: translateX(2px);
}