/* ============================================================
   37x — Comparison Shopping
   System fonts · No external dependencies · Mobile-first
   ============================================================ */

/* --- Reset & base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1d23;
    background: #fff;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: #1055c9; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-main { flex: 1; padding: 1.75rem 0 3rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e8eaed;
    padding: 0.875rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Logo / wordmark */
.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo:hover { text-decoration: none; }

.logo-wordmark {
    font-size: 1.625rem;
    font-weight: 800;
    color: #1a1d23;
    letter-spacing: -0.04em;
}

.logo-x { color: #1055c9; }

.logo-tagline {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.01em;
    margin-top: 1px;
}

/* Header search */
.header-search {
    display: flex;
    flex: 1;
    max-width: 700px;
    gap: 0;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 0.6rem 1rem;
    border: 1.5px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 0.9375rem;
    color: #1a1d23;
    background: #fff;
    outline: none;
    transition: border-color 0.15s;
}

.search-input::placeholder { color: #9ca3af; }
.search-input:focus { border-color: #1055c9; }

.search-input--large {
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    padding: 0.8125rem 1.25rem;
    font-size: 1.0625rem;
}

.search-input--large:focus { border-color: #1055c9; box-shadow: 0 0 0 3px rgba(16,85,201,0.12); }

/* Header search button — flush to input */
.header-search .btn-primary {
    border-radius: 0 8px 8px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1.125rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, box-shadow 0.15s;
    white-space: nowrap;
    line-height: 1.2;
}

.btn:hover { text-decoration: none; }

.btn-primary { background: #1055c9; color: #fff; }
.btn-primary:hover { background: #0d47b0; }

.btn-secondary { background: #eef2fb; color: #1055c9; border: 1px solid #d0daf5; }
.btn-secondary:hover { background: #dce6f6; }

.btn--large { padding: 0.8125rem 1.75rem; font-size: 1rem; border-radius: 10px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    background: #fff;
}

.hero-logo {
    display: block;
    font-size: 3.75rem;
    font-weight: 800;
    color: #1a1d23;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 0.25rem;
    text-decoration: none;
}

.hero-logo:hover { text-decoration: none; }

.hero h1 {
    font-size: clamp(1.5rem, 4vw, 2.125rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1d23;
    letter-spacing: -0.025em;
    margin-top: 1rem;
}

.hero p { color: #6b7280; margin-bottom: 2rem; font-size: 1.0625rem; }

.hero-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0;
}

.hero-search .search-input--large {
    border-right: none;
    border-radius: 8px 0 0 8px;
}

.hero-search .btn-primary {
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    padding: 0 1.5rem;
}

/* ============================================================
   SEARCH PAGE
   ============================================================ */

/* Results header */
.results-header {
    margin-bottom: 1rem;
}

.results-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1d23;
    margin-bottom: 0.2rem;
}

.results-count {
    font-size: 0.875rem;
    color: #6b7280;
}

/* ---- Toolbar (filter button + sort dropdown) ---- */
.search-toolbar {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
    position: relative;
}

/* Filter toggle button */
.filter-details { position: relative; }

.filter-details summary { list-style: none; }
.filter-details summary::-webkit-details-marker { display: none; }

.btn-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5625rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s, background 0.15s;
}

.btn-filter:hover { border-color: #9ca3af; background: #f9fafb; }
.filter-details[open] .btn-filter { border-color: #1055c9; color: #fff; background: #1055c9; }
.filter-details[open] .btn-filter .filter-badge { background: rgba(255,255,255,0.25); color: #fff; }

.filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1055c9;
    color: #fff;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    line-height: 1;
}

/* Filter panel — full-width card below toolbar */
.filter-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #dee2ea;
    border-radius: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.04), 0 16px 48px rgba(0,0,0,0.13);
    min-width: 680px;
    max-width: 900px;
    padding: 1.75rem;
}

.filter-form { display: flex; flex-direction: column; gap: 1.25rem; }

.filter-cols {
    display: grid;
    grid-template-columns: 180px 1fr 160px;
    gap: 2rem;
    align-items: start;
}

.filter-col { min-width: 0; }

.filter-col__heading {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #6b7280;
    margin-bottom: 0.875rem;
}

/* Price range inputs */
.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range__label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.price-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.price-input-prefix {
    position: absolute;
    left: 0.6875rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    pointer-events: none;
    z-index: 1;
}

.price-range__input {
    width: 100%;
    padding: 0.5625rem 0.625rem 0.5625rem 1.75rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: #1a1d23;
    background: #fff;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.price-range__input:focus { border-color: #1055c9; box-shadow: 0 0 0 3px rgba(16,85,201,0.08); }
.price-range__sep { color: #d1d5db; font-weight: 500; flex-shrink: 0; padding-top: 1.5rem; font-size: 1.125rem; }

/* Merchant chips */
.merchant-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4375rem;
}

.merchant-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3125rem 0.8125rem;
    border: 1.5px solid #e2e5ea;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s, box-shadow 0.12s;
    background: #fff;
    user-select: none;
    white-space: nowrap;
    line-height: 1.3;
}

.merchant-chip:hover {
    border-color: #1055c9;
    color: #1055c9;
    background: #f0f5ff;
}

.merchant-chip:has(input:checked) {
    background: #1055c9;
    border-color: #1055c9;
    color: #fff;
    box-shadow: 0 1px 4px rgba(16,85,201,0.25);
}

.merchant-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Availability checkbox (static, non-merchant) */
.filter-check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
}

.filter-check-label input[type="checkbox"] {
    accent-color: #1055c9;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.filter-check-label:hover { color: #1055c9; }

.filter-check-label--static { color: #1a7a1a; cursor: default; font-weight: 500; }
.filter-check-label--static input { accent-color: #1a7a1a; }
.filter-avail-note { font-size: 0.8125rem; color: #9ca3af; margin-top: 0.5rem; }

/* Filter actions */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.btn-clear-filters {
    font-size: 0.875rem;
    color: #6b7280;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.btn-clear-filters:hover { color: #1055c9; }

/* Sort dropdown */
.sort-details { position: relative; }
.sort-details summary { list-style: none; }
.sort-details summary::-webkit-details-marker { display: none; }

.sort-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5625rem 1rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.sort-summary:hover { border-color: #9ca3af; }
.sort-details[open] .sort-summary { border-color: #1055c9; }

.sort-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 50;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 220px;
    overflow: hidden;
}

.sort-option {
    display: block;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.1s;
}

.sort-option:hover { background: #f5f7ff; text-decoration: none; }
.sort-option--active { font-weight: 700; color: #1055c9; background: #f0f5ff; }

/* ============================================================
   RESULT LIST & CARDS
   ============================================================ */
.result-list { display: flex; flex-direction: column; gap: 0.625rem; }

.result-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.result-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); border-color: #c7d2e8; }

.result-card__image-link { flex-shrink: 0; }
.result-card__image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    background: #f9f9fb;
}

.result-card__body { flex: 1; min-width: 0; }

.result-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.35;
}

.result-card__title a { color: #1a1d23; }
.result-card__title a:hover { color: #1055c9; text-decoration: underline; }

.result-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.result-card__action { flex-shrink: 0; }

/* Compact variant (similar products) */
.result-card--compact { padding: 0.75rem; }
.result-card--compact .result-card__image { width: 60px; height: 60px; }
.result-list--compact { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
.result-list--compact .result-card--compact { flex: 1 1 200px; }

/* Price & merchant labels */
.price { font-size: 1.0625rem; font-weight: 700; color: #0e7a0e; }
.merchant { font-size: 0.8125rem; color: #6b7280; }

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-header {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.product-header__image {
    width: 180px;
    height: 180px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
    background: #f9f9fb;
}

.product-header__info h1 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.product-header__brand { color: #6b7280; font-size: 0.875rem; margin-bottom: 0.5rem; }
.product-header__desc {
    color: #374151;
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-top: 0.625rem;
    max-height: 9rem;
    overflow-y: auto;
    padding-right: 0.375rem;
}
.product-header__desc::-webkit-scrollbar { width: 4px; }
.product-header__desc::-webkit-scrollbar-track { background: transparent; }
.product-header__desc::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }
.product-header__desc::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* Sort bar (product page) */
.offers-section { margin-bottom: 2rem; }
.offers-section > h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; color: #1a1d23; }

.sort-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    border-top: 1px solid #e8eaed;
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 0.875rem;
}

.sort-link { color: #1055c9; padding: 0.1875rem 0.5rem; border-radius: 4px; }
.sort-link:hover { background: #eef2fb; text-decoration: none; }
.sort-link--active { font-weight: 700; color: #1a1d23; background: #f0f5ff; pointer-events: none; }

/* Offers table */
.offers-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8eaed;
    font-size: 0.9375rem;
}

.offers-table th {
    background: #f7f8fa;
    padding: 0.6875rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    border-bottom: 1px solid #e8eaed;
}

.offers-table td {
    padding: 0.875rem 1rem;
    border-top: 1px solid #f0f0f2;
    vertical-align: middle;
}

.offers-table tr:first-child td { border-top: none; }
.offers-table tr:hover td { background: #f7f9ff; }

.offer-merchant { display: flex; align-items: center; gap: 0.625rem; font-weight: 500; }
.merchant-logo { height: 22px; width: auto; object-fit: contain; }
.offer-price { white-space: nowrap; }
.offer-action { text-align: right; }
.text-right { text-align: right; }

/* Similar products */
.similar-section { margin-top: 2rem; }
.similar-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 0.75rem; }

/* ============================================================
   STATIC PAGES (about, privacy, contact)
   ============================================================ */
.static-page {
    max-width: 740px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 2.5rem;
}

.static-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.875rem;
    letter-spacing: -0.025em;
}

.static-page h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
    color: #1a1d23;
}

.static-page p { color: #374151; margin-bottom: 0.875rem; line-height: 1.7; }
.static-page .lead { font-size: 1.0625rem; margin-bottom: 1.25rem; line-height: 1.65; }
.static-meta { font-size: 0.8125rem; color: #9ca3af; margin-bottom: 1.5rem; }

.contact-info { margin-top: 1.5rem; }
.contact-email { margin: 0.75rem 0 1.5rem; }
.contact-email a { font-size: 1.125rem; font-weight: 600; }

/* ============================================================
   EMPTY STATE & ERROR
   ============================================================ */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
}

.empty-state h2 { margin-bottom: 0.5rem; font-size: 1.125rem; color: #374151; }

.error-page { text-align: center; padding: 5rem 1rem; }
.error-page h1 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.error-page p { color: #6b7280; margin-bottom: 1.5rem; font-size: 1.0625rem; }
.error-search { display: flex; max-width: 500px; margin: 0 auto 1rem; gap: 0; }
.error-search .search-input { border-right: none; border-radius: 8px 0 0 8px; }
.error-search .btn-primary { border-radius: 0 8px 8px 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: #fff;
    border-top: 1px solid #e8eaed;
    padding: 1.25rem 0;
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: auto;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-nav { display: flex; gap: 1.25rem; }
.footer-nav a { color: #6b7280; }
.footer-nav a:hover { color: #1055c9; text-decoration: underline; }

/* ============================================================
   UTILS
   ============================================================ */
.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;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
    .filter-panel { min-width: calc(100vw - 3rem); max-width: 100%; left: 0; right: 0; }
    .filter-cols { grid-template-columns: 1fr; gap: 1.25rem; }
}

@media (max-width: 600px) {
    .site-header .container { gap: 1rem; }
    .logo-tagline { display: none; }
    .product-header { flex-direction: column; }
    .product-header__image { width: 100%; height: 200px; }
    .result-card { flex-wrap: wrap; }
    .result-card__action { width: 100%; }
    .result-card__action .btn { width: 100%; }
    .hero-search { flex-direction: column; }
    .hero-search .search-input--large { border-radius: 8px; border-right: 1.5px solid #d1d5db; }
    .hero-search .btn-primary { border-radius: 8px; padding: 0.75rem 1.5rem; }
    .static-page { padding: 1.5rem 1rem; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .offers-table { font-size: 0.875rem; }
    .offers-table td, .offers-table th { padding: 0.625rem 0.75rem; }
}

/* ======================================================================
   COOKIE CONSENT BANNER
   ====================================================================== */
#cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a1d23;
    color: #f3f4f6;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cc-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.25rem 1.5rem;
}

.cc-text {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #d1d5db;
}

.cc-buttons {
    display: flex;
    gap: 0.625rem;
    flex-wrap: wrap;
}

.cc-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.cc-btn-accept {
    background: #1055c9;
    color: #fff;
}
.cc-btn-accept:hover { background: #0d47a1; }

.cc-btn-reject {
    background: #374151;
    color: #f3f4f6;
}
.cc-btn-reject:hover { background: #4b5563; }

.cc-btn-manage {
    background: transparent;
    color: #9ca3af;
    text-decoration: underline;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}
.cc-btn-manage:hover { color: #f3f4f6; }

.cc-btn-save {
    background: #1055c9;
    color: #fff;
    margin-top: 0.75rem;
}
.cc-btn-save:hover { background: #0d47a1; }

.cc-prefs {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #374151;
}

.cc-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
}

.cc-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #1055c9;
    flex-shrink: 0;
}

.cc-toggle-label {
    font-size: 0.875rem;
    line-height: 1.4;
}

.cc-toggle-label strong {
    color: #f3f4f6;
}

.cc-toggle-label small {
    color: #9ca3af;
}

/* ======================================================================
   CONTACT PAGE
   ====================================================================== */
.contact-page {
    max-width: 960px;
    margin: 0 auto;
}

.contact-page h1 {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.contact-lead {
    text-align: center;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Email support card */
.contact-email-card {
    text-align: center;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.contact-email-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    line-height: 48px;
    background: #eef2ff;
    color: #1055c9;
    border-radius: 50%;
    margin: 0 auto 0.75rem;
}

.contact-email-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-email-desc {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.contact-email-addr a {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #1a1d23;
    text-decoration: none;
}
.contact-email-addr a:hover { color: #1055c9; }

.contact-email-time {
    color: #9ca3af;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
    margin-bottom: 0;
}

/* Grid: form + sidebar */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.contact-form-card,
.contact-sidebar-card {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 2rem;
}

.contact-form-card h2,
.contact-sidebar-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Form */
.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.9375rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #1a1d23;
    font-family: inherit;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #1055c9;
    box-shadow: 0 0 0 3px rgba(16, 85, 201, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-submit {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
}

.contact-form-note {
    text-align: center;
    color: #9ca3af;
    font-size: 0.8125rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Sidebar cards */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-office-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.contact-office-city {
    font-weight: 600;
    margin: 0;
}

.contact-badge {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.contact-address {
    font-style: normal;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
    padding-left: 0;
}

.contact-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f3f4f6;
}

.contact-hours-row:last-of-type {
    border-bottom: none;
}

.contact-hours-note {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-top: 0.75rem;
    line-height: 1.5;
    background: #f9fafb;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0;
}

.contact-help-link {
    display: block;
    padding: 0.5rem 0;
    color: #1055c9;
    font-size: 0.9375rem;
    text-decoration: none;
}
.contact-help-link:hover { text-decoration: underline; }

/* Privacy table */
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0 1.5rem;
    font-size: 0.875rem;
}

.privacy-table th,
.privacy-table td {
    text-align: left;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #e8eaed;
}

.privacy-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

.privacy-table code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 3px;
    font-size: 0.8125rem;
}

/* Contact page responsive */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .contact-page { padding: 0 0.5rem; }
    .contact-form-card,
    .contact-sidebar-card,
    .contact-email-card { padding: 1.5rem 1rem; }
}
