/* Custom CSS for Set Free Bail Bonds */

:root {
    --primary-blue: #001F3F;
    --secondary-blue: #003366;
    --accent-red: #FF4136;
    --light-gray: #f7f7f7;
    --text-dark: #333;
    --text-light: #666;
}

/* Global Styles */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

/* Bootstrap Custom Colors */
.bg-primary {
    background-color: var(--primary-blue) !important;
}

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

.btn-primary:hover {
    background-color: var(--secondary-blue);
    border-color: var(--secondary-blue);
}

.btn-danger {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}

.text-primary {
    color: var(--primary-blue) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

/* Emergency Contact - removed banner styles */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 60px 0 100px 0;
    position: relative;
    overflow: hidden;
}

/* Remove box effects and clipping from hero image */
.hero-section .col-lg-6 img {
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    object-fit: contain !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://pixabay.com/get/g1812d300137a58c591858064d9b223c0eee34f528b641c207ff941ffff3a5715774224f9b979357ecd8d6c0af2ce8812528ff5a67bd80f39db9015ed7cb9ba54_1280.jpg') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 30px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.trust-badge i {
    font-size: 1.2em;
    display: block;
    margin-bottom: 5px;
}

.trust-badge small {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.9);
}

/* Quick Form Section */
.quick-form-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

/* Calculator Section */
.calculator-section {
    background: var(--light-gray);
}

.calculator-widget {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.result-card {
    text-align: center;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
}

.price {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-red);
}

/* Services Section */
.services-section .service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.services-section .service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2em;
}

/* Locations Section */
.locations-section {
    background: white;
}

.location-link {
    text-decoration: none;
    color: inherit;
}

.location-card {
    background: var(--light-gray);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.location-card:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--accent-red);
    transform: translateY(-3px);
}

/* FAQ Section */
.faq-section .accordion-button {
    background-color: var(--light-gray);
    color: var(--text-dark);
    font-weight: 600;
}

.faq-section .accordion-button:not(.collapsed) {
    background-color: var(--primary-blue);
    color: white;
}

/* Contact Section */
.contact-section {
    background: var(--secondary-blue);
    color: white;
}

.contact-method {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5em;
}

.contact-form-card {
    background: white;
    color: var(--text-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-button {
    width: 60px;
    height: 60px;
    background: var(--accent-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 65, 54, 0.4);
    font-size: 1.5em;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.chat-header {
    background: var(--primary-blue);
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 20px;
}

/* Application Form Styles */
.application-section {
    min-height: 100vh;
    background: var(--light-gray);
    padding-top: 40px;
}

.application-header .progress {
    height: 8px;
    background-color: #e9ecef;
}

.application-header .progress-bar {
    background-color: var(--accent-red);
    transition: width 0.3s ease;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.application-form .card {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.application-form .card-header {
    background: var(--primary-blue);
    color: white;
    border-bottom: none;
    padding: 20px;
}

.application-form .card-body {
    padding: 30px;
}

/* Signature Pad */
.signature-pad-container {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
    text-align: center;
}

.signature-pad {
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: crosshair;
    display: block;
    margin: 0 auto;
}

.signature-controls {
    margin-top: 15px;
}

.agreement-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 8px;
    font-size: 0.9em;
}

/* Payment Calculator in Application */
.payment-calculator .alert {
    border: none;
    border-radius: 10px;
}

/* City Page Styles */
.city-hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.city-hero .container {
    position: relative;
    z-index: 2;
}

.jail-list {
    list-style: none;
    padding: 0;
}

.jail-list li {
    background: var(--light-gray);
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 5px;
    border-left: 4px solid var(--accent-red);
}

.map-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
    }
    
    .hero-section {
        padding: 60px 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .trust-indicators .row {
        justify-content: center;
    }
    
    .chat-window {
        width: 280px;
        right: -10px;
    }
    
    .emergency-banner {
        font-size: 12px;
        padding: 8px 0;
    }
    
    .signature-pad {
        width: 100%;
        max-width: 400px;
        height: 200px;
    }
}

@media (max-width: 576px) {
    .application-form .card-body {
        padding: 20px;
    }
    
    .service-card,
    .contact-form-card {
        padding: 20px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .location-card {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .emergency-banner,
    .chat-widget,
    .btn,
    .signature-controls {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .application-form .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Form Validation */
.was-validated .form-control:valid {
    border-color: #28a745;
}

.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 31, 63, 0.25);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-blue);
}
