/* Recorder Section Styles - v1.03 - Cleaned and Consolidated */

/* Hero Sections */
.recorder-hero {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    color: white;
    padding: 60px 0 40px 0;
    margin-bottom: 40px;
    margin-top: 0;
    position: relative;
    overflow: visible;
}

/* Main page hero specific */
.recorder-hero-main {
    padding: 80px 0;
}

/* Remove flashy animation for county page */
.recorder-hero-county::before {
    display: none;
}

.recorder-hero .container {
    position: relative;
    z-index: 1;
}

.recorder-hero h1 {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-size: 2.5rem;
}

.recorder-hero-main h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.recorder-hero p {
    font-size: 1.25rem;
    opacity: 0.9;
}

.recorder-hero .lead {
    position: relative;
    z-index: 1;
    font-weight: 400;
    opacity: 0.95;
}

/* Breadcrumbs */
.recorder-hero .breadcrumb,
.breadcrumb-recorder {
    background: transparent;
    padding: 0;
    margin-bottom: 15px;
}

.recorder-hero .breadcrumb-item,
.breadcrumb-recorder .breadcrumb-item {
    color: rgba(255,255,255,0.8);
}

.recorder-hero .breadcrumb-item a,
.breadcrumb-recorder .breadcrumb-item a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

.recorder-hero .breadcrumb-item a:hover,
.breadcrumb-recorder .breadcrumb-item a:hover {
    color: white;
    text-decoration: underline;
}

.recorder-hero .breadcrumb-item + .breadcrumb-item::before,
.breadcrumb-recorder .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.6);
}

.recorder-hero .breadcrumb-item.active,
.breadcrumb-recorder .breadcrumb-item.active {
    color: white;
}

/* Typography */
.recorder-section h2 {
    font-weight: 600;
    color: #212529;
}

.recorder-section h3 {
    font-weight: 600;
    color: #212529;
}

/* State Grid - Professional look */
.state-grid {
    display: grid;
    gap: 10px;
    margin-top: 0;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.state-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 16px;
    text-align: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    min-height: 50px;
}

.state-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
    border-color: #1976d2;
    color: #1565c0;
    background-color: #f8f9fa;
}

/* County Grid - Cleaner look */
.county-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.county-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px 20px;
    text-align: left;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #495057;
    position: relative;
    overflow: hidden;
}

.county-card::before {
    display: none; /* Remove the animated bar */
}

.county-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #1976d2;
    background-color: #f8f9fa;
    text-decoration: none;
}

.county-card h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: #212529;
}

.county-card:hover h5 {
    color: #1565c0;
}

/* Info Cards and Sections */
.info-card,
.info-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    border-left: none;
    box-shadow: none;
}

.info-card h3 {
    color: #1565c0;
    margin-bottom: 15px;
}

.info-section h2 {
    color: #1565c0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.info-section h2 i {
    margin-right: 10px;
}

.info-section h3 {
    color: #1565c0;
}

/* Collapsible State Info */
.info-section h2[data-bs-toggle="collapse"] {
    cursor: pointer;
    justify-content: space-between;
}

.info-section h2 i.bi-chevron-down {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.info-section h2[aria-expanded="true"] i.bi-chevron-down {
    transform: rotate(180deg);
}

/* Feature Icons */
.feature-icon {
    width: 50px;
    height: 50px;
    background: #e3f2fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #1976d2;
}

/* Office Cards */
.office-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 3px solid #1976d2;
    transition: transform 0.2s ease;
}

.office-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.office-card h5 {
    color: #1565c0;
    margin-bottom: 15px;
}

.office-info {
    display: flex;
    align-items: start;
    margin-bottom: 10px;
}

.office-info i {
    color: #1976d2;
    margin-right: 10px;
    width: 20px;
    margin-top: 3px;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: white;
}

/* Form Links */
.form-link {
    display: block;
    padding: 12px 20px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

.form-link:hover {
    border-color: #1976d2;
    background: #f5f5f5;
    text-decoration: none;
    color: #1565c0;
}

/* Stats Boxes */
.stats-box {
    background: white;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.stats-box h3 {
    color: #1976d2;
    font-size: 1.75rem;
    margin-bottom: 5px;
    font-weight: 600;
}

.stats-box-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    background: #f8f9fa;
}

.stats-box-link h3 {
    transition: color 0.3s ease;
}

.stats-box-link:hover h3 {
    color: #1565c0;
}

/* Search Filter */
.search-filter {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 16px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    transition: border-color 0.15s ease;
}

.search-filter:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.1);
}

/* Disclaimer Banner */
.disclaimer-banner {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.disclaimer-banner i {
    color: #6c757d;
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* Quick Links */
.quick-links {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.quick-links h3 {
    color: #1565c0;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

/* Hero Image */
.hero-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* Recorder Card Enhancements */
.recorder-section .card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.recorder-section .card-title {
    color: #1565c0;
}

/* Button refinements */
.btn-primary {
    background-color: #1976d2;
    border-color: #1976d2;
    font-weight: 500;
    padding: 8px 20px;
}

.btn-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

.btn-outline-primary {
    color: #1976d2;
    border-color: #1976d2;
    font-weight: 500;
}

.btn-outline-primary:hover {
    background-color: #1976d2;
    border-color: #1976d2;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .recorder-hero h1 {
        font-size: 2rem;
    }

    .recorder-hero {
        padding: 40px 0 30px 0;
    }

    .state-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .state-card {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .county-grid {
        grid-template-columns: 1fr;
    }

    /* Mobile-specific office display */
    .mobile-offices {
        display: block;
    }

    .desktop-offices {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-offices {
        display: none;
    }

    .desktop-offices {
        display: block;
    }
}

/* State card hover effect - shows county count */
.state-card {
    position: relative;
    overflow: hidden;
}

.state-card:hover::after {
    content: attr(data-county-count);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    font-size: 0.7rem;
    color: #6c757d;
    background: rgba(248, 249, 250, 0.9);
    padding: 2px 0;
    text-align: center;
    transform: translateY(100%);
    animation: slideUp 0.2s ease-out forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}