/* ======================================= */
/* 1. Global Styles & Variables            */
/* ======================================= */
:root {
    --primary-color: #005A9C;
    --secondary-color: #00A4E4;
    --background-color: #f0f2f5;
    --card-background: #ffffff;
    --text-color: #1c1e21;
    --label-color: #555;
    --border-color: #dddfe2;
    --dark-footer-bg: #1a202c;
    --light-text: #f0f4f8;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
}

body { 
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color); 
    color: var(--text-color); 
    margin: 0; 
}

/* ======================================= */
/* 2. Main Site Header (Navigation)        */
/* ======================================= */
.site-header {
    background: var(--card-background);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title a { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo { height: 45px; width: auto; }
.logo-text { font-family: 'Inter', sans-serif; font-size: 1.4em; font-weight: 700; color: var(--primary-color); }

.site-nav a {
    margin-left: 25px;
    font-weight: 600;
    color: var(--label-color);
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--primary-color); }

/* ======================================= */
/* 3. Page-Specific Hero Section (Title)   */
/* ======================================= */
.page-hero {
    background-color: #eaf2f8;
    text-align: center;
    padding: 40px 20px;
}

.hero-container { width: 90%; max-width: 1200px; margin: 0 auto; }

.page-hero h1 { 
    color: var(--primary-color); 
    margin: 0 0 10px 0;
    font-size: 2.5rem;
}
.page-hero p { color: var(--label-color); font-size: 1.1em; margin: 0; }

/* ======================================= */
/* 4. Main Content Wrapper & Tool Styles   */
/* ======================================= */
.page-content-wrapper {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 1.5rem;
    box-sizing: border-box;
}

.filters { display: flex; justify-content: center; gap: 20px; margin-bottom: 2.5rem; flex-wrap: wrap; background-color: var(--card-background); padding: 1.5rem; border-radius: 8px; box-shadow: var(--shadow); }
.filter-group { display: flex; flex-direction: column; }
.search-group { flex-grow: 1; }
.filter-group label { margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; color: #606770; }

#stateSelect, #searchInput { padding: 12px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 1rem; min-width: 280px; transition: all 0.2s ease; }
#searchInput { width: 100%; box-sizing: border-box; }
#stateSelect:focus, #searchInput:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(0, 90, 156, 0.2); }

#results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.rto-card { background-color: var(--card-background); border-radius: 8px; border: 1px solid var(--border-color); padding: 20px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; justify-content: center; text-align: center; opacity: 0; animation: fadeIn 0.4s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.rto-card .code { font-size: 2rem; font-weight: 700; color: var(--primary-color); margin-bottom: 10px; }
.rto-card .city { font-size: 1.25rem; font-weight: 500; margin-bottom: 5px; }
.rto-card .state { font-size: 1rem; color: #606770; }

#no-results { text-align: center; font-size: 1.2rem; color: #888; padding: 2rem; }
.hidden { display: none; }

/* Pagination Styles */
#pagination-controls { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 2.5rem; }
.pagination-btn { font-family: 'Roboto', sans-serif; font-weight: 500; font-size: 1rem; padding: 8px 14px; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--card-background); color: var(--primary-color); cursor: pointer; transition: all 0.2s ease; }
.pagination-btn:hover:not(:disabled) { background-color: #e7f3ff; border-color: var(--primary-color); }
.pagination-btn.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); cursor: default; }
.pagination-btn:disabled { color: #a0a0a0; cursor: not-allowed; background-color: #f0f2f5; }

/* Content Section Styles */
.content-container { margin-top: 3rem; padding: 2.5rem; background-color: var(--card-background); border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); border: 1px solid var(--border-color); }
.content-container section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #f0f2f5; }
.content-container section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.content-container h2 { font-size: 1.8rem; font-weight: 700; margin-top: 0; margin-bottom: 1rem; color: #333; }
.content-container p, .content-container li { line-height: 1.7; color: #606770; }
.content-container ul { list-style-type: disc; padding-left: 25px; }
.content-container li { margin-bottom: 0.75rem; }
.content-container strong { color: var(--text-color); font-weight: 700; }
.plate-example { background-color: #e7f3ff; border: 1px dashed var(--primary-color); padding: 1rem; border-radius: 6px; font-family: monospace; font-size: 1.5rem; font-weight: bold; text-align: center; margin: 1.5rem 0; }

/* ======================================= */
/* 5. Main Site Footer                     */
/* ======================================= */
.site-footer {
    background: var(--dark-footer-bg);
    color: var(--light-text);
    padding: 30px 0;
    margin-top: 50px;
    width: 100%;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-nav a {
    margin-left: 20px;
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-nav a:hover {
    color: white;
}