/**
 * Theme 3 - Post Free Ads (matches React design)
 * Blue, white, dark grey, light green. Responsive: mobile, tablet, desktop.
 */
:root {
    --t3-background: #ffffff;
    --t3-foreground: #1e293b;
    --t3-primary: #2563eb;
    --t3-primary-light: #3b82f6;
    --t3-primary-foreground: #ffffff;
    --t3-muted: #64748b;
    --t3-border: #e2e8f0;
    --t3-card: #ffffff;
    --t3-footer-bg: 222 47% 11%;
    --t3-footer-text: rgba(255, 255, 255, 0.85);
    --t3-hero-gradient: linear-gradient(135deg, hsl(217 91% 60%) 0%, hsl(199 89% 48%) 100%);
    --t3-hero-overlay: linear-gradient(180deg, hsla(217, 91%, 20%, .85) 0%, hsla(199, 89%, 30%, .75) 100%);
    --t3-radius: 0.5rem;
    --t3-radius-lg: 0.75rem;
    --t3-success: #22c55e;
    --t3-verified-bg: #dcfce7;
    --t3-verified-text: #16a34a;
    --t3-featured-bg: #2563eb;
    --t3-featured-text: #fff;
}

.theme3-body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--t3-background);
    color: var(--t3-foreground);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.theme3-body h1, .theme3-body h2, .theme3-body h3, .theme3-body h4, .theme3-body h5, .theme3-body h6 {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: var(--t3-foreground);
}

/* ----- Header (white, sticky) ----- */
.theme3-header {
    background: #fff !important;
    border-bottom: 1px solid var(--t3-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.theme3-header .container-tight {
    max-width: 72rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.theme3-logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--t3-primary);
    border-radius: var(--t3-radius);
    color: #fff;
    flex-shrink: 0;
}
.theme3-brand { font-size: 1.125rem; font-weight: 700; color: var(--t3-foreground); }
.theme3-nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--t3-muted);
    transition: color 0.2s, background 0.2s;
}
.theme3-nav-link:hover { background: #f1f5f9; color: var(--t3-primary) !important; }
.theme3-header .btn-ghost { background: transparent; color: var(--t3-foreground); }
.theme3-header .btn-ghost:hover { background: #f1f5f9; color: var(--t3-primary); }
.theme3-header .btn-primary {
    background: var(--t3-primary);
    color: #fff;
    border-radius: var(--t3-radius);
    font-weight: 500;
    padding: 0.375rem 0.875rem;
}
.theme3-header .btn-primary:hover { background: #1d4ed8; color: #fff; }

@media (max-width: 767.98px) {
    .theme3-header .container-tight > div { min-height: 3.5rem; }
    .theme3-mobile-menu.collapse:not(.show) { display: none; }
    .theme3-mobile-menu.collapse.show { display: block; }
}

/* ----- Main ----- */
.theme3-main { flex: 1; }

/* ----- Container & sections ----- */
.container-tight {
    max-width: 72rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 576px) {
    .container-tight { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 992px) {
    .container-tight { padding-left: 2rem; padding-right: 2rem; }
}

.section-padding {
    padding-top: 3rem;
    padding-bottom: 3rem;
}
@media (min-width: 768px) {
    .section-padding { padding-top: 4rem; padding-bottom: 4rem; }
}
@media (min-width: 992px) {
    .section-padding { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ----- Hero (city image + dark blue overlay) ----- */
.theme3-hero {
    position: relative;
    overflow: hidden;
    background: var(--t3-hero-gradient);
    background-image: url('../assets/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}
.theme3-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--t3-hero-overlay);
    z-index: 1;
}
.theme3-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 3rem;
    padding-bottom: 3.5rem;
}
@media (min-width: 768px) {
    .theme3-hero-inner { padding-top: 4.5rem; padding-bottom: 5rem; }
}
@media (min-width: 992px) {
    .theme3-hero-inner { padding-top: 6rem; padding-bottom: 7rem; }
}

.theme3-hero .theme3-hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
@media (min-width: 576px) {
    .theme3-hero .theme3-hero-title { font-size: 2.5rem; }
}
@media (min-width: 768px) {
    .theme3-hero .theme3-hero-title { font-size: 3rem; }
}
@media (min-width: 992px) {
    .theme3-hero .theme3-hero-title { font-size: 3.5rem; }
}
.theme3-hero .theme3-hero-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    max-width: 36rem;
}
@media (min-width: 768px) {
    .theme3-hero .theme3-hero-subtitle { font-size: 1.125rem; }
}

/* ----- Search card ----- */
.theme3-search-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--t3-radius-lg);
    padding: 1.25rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 1.5rem;
}
.theme3-search-card .form-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--t3-muted);
    margin-bottom: 0.35rem;
}
.theme3-search-card .form-control,
.theme3-search-card .form-select {
    font-size: 0.875rem;
    border-radius: var(--t3-radius);
    border-color: var(--t3-border);
}
.theme3-search-card .form-control:focus,
.theme3-search-card .form-select:focus {
    border-color: var(--t3-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.theme3-search-card .btn-primary {
    background: var(--t3-primary);
    color: #fff;
    border-radius: var(--t3-radius);
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .theme3-search-card { padding: 1rem; }
    .theme3-search-card .theme3-search-row > * { width: 100% !important; max-width: none !important; }
    .theme3-search-card .btn-primary { width: 100%; }
}

/* ----- Section titles ----- */
.theme3-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--t3-foreground);
    margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
    .theme3-section-title { font-size: 1.75rem; }
}
.theme3-section-subtitle { color: var(--t3-muted); font-size: 0.9375rem; }

/* ----- Category cards ----- */
.theme3-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.25rem 0.75rem;
    border-radius: var(--t3-radius-lg);
    border: 1px solid var(--t3-border);
    background: var(--t3-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.theme3-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    color: var(--t3-foreground);
    border-color: rgba(37, 99, 235, 0.3);
}
.theme3-category-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: var(--t3-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}
.theme3-category-card .theme3-cat-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--t3-foreground);
}
.theme3-category-card .theme3-cat-count {
    font-size: 0.75rem;
    color: var(--t3-muted);
    margin-top: 0.25rem;
}

/* ----- Location pills ----- */
.theme3-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--t3-border);
    background: var(--t3-card);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--t3-foreground);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s;
}
.theme3-location-pill:hover {
    border-color: var(--t3-primary);
    color: var(--t3-primary);
}
.theme3-location-pill .theme3-loc-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background: var(--t3-primary);
    flex-shrink: 0;
}

/* ----- Featured Ads ----- */
.theme3-ad-card {
    overflow: hidden;
    border-radius: var(--t3-radius-lg);
    border: 1px solid var(--t3-border);
    background: var(--t3-card);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.theme3-ad-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.theme3-ad-card .theme3-ad-image {
    aspect-ratio: 16/10;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--t3-muted);
    position: relative;
}
.theme3-ad-card .theme3-ad-image .theme3-ad-placeholder {
    font-size: 2rem;
    opacity: 0.35;
}
.theme3-ad-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.theme3-ad-badge.badge-featured {
    background: var(--t3-featured-bg);
    color: var(--t3-featured-text);
}
.theme3-ad-badge.badge-verified {
    background: var(--t3-verified-bg);
    color: var(--t3-verified-text);
}
.theme3-ad-card .theme3-ad-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.theme3-ad-card .theme3-ad-cat { font-size: 0.75rem; font-weight: 600; color: var(--t3-primary); margin-bottom: 0.25rem; }
.theme3-ad-card .theme3-ad-title { font-size: 0.9375rem; font-weight: 600; color: var(--t3-foreground); margin-bottom: 0.5rem; line-height: 1.3; }
.theme3-ad-card .theme3-ad-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem; }
.theme3-ad-card .theme3-ad-price { font-size: 1rem; font-weight: 700; color: var(--t3-foreground); }
.theme3-ad-card .theme3-ad-location { font-size: 0.75rem; color: var(--t3-muted); }

.badge-success { background: var(--t3-verified-bg); color: var(--t3-verified-text); }
.badge-primary-t3 { background: rgba(37, 99, 235, 0.15); color: var(--t3-primary); }
.badge-rejected { background: #fef2f2; color: #b91c1c; }

/* ----- Trust strip ----- */
.theme3-trust-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: var(--t3-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.theme3-trust-title { font-size: 1.125rem; font-weight: 700; color: var(--t3-foreground); margin-bottom: 0.35rem; }
.theme3-trust-desc { font-size: 0.875rem; color: var(--t3-muted); line-height: 1.5; }
@media (max-width: 767.98px) {
    .theme3-trust-item { margin-bottom: 1.5rem; }
    .theme3-trust-item:last-child { margin-bottom: 0; }
}

/* ----- CTA ----- */
.hero-gradient-bg,
.theme3-page-hero {
    background: var(--t3-hero-gradient);
    color: #fff;
}
.theme3-page-hero .text-primary-foreground { color: rgba(255,255,255,0.9) !important; }
.theme3-page-hero .text-primary-foreground-60 { color: rgba(255,255,255,0.6) !important; }
.hero-gradient-bg .btn-light,
.theme3-page-hero .btn-light {
    background: #fff;
    color: var(--t3-primary);
    font-weight: 600;
    border-radius: var(--t3-radius);
    padding: 0.625rem 1.5rem;
}
.hero-gradient-bg .btn-light:hover,
.theme3-page-hero .btn-light:hover {
    background: #f8fafc;
    color: var(--t3-primary);
}

/* ----- React-style card hover ----- */
.theme3-card-hover {
    transition: transform 0.2s, box-shadow 0.2s;
}
.theme3-card-hover:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

/* ----- Categories page: list card (row layout) ----- */
.theme3-categories-list-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 0.75rem;
    border: 1px solid var(--t3-border);
    background: var(--t3-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.theme3-categories-list-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    color: var(--t3-foreground);
    border-color: rgba(37, 99, 235, 0.3);
}
.theme3-categories-list-card .theme3-category-icon {
    margin-bottom: 0;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}
.theme3-categories-list-card .theme3-cat-name { font-size: 1rem; font-weight: 700; margin-bottom: 0.25rem; }
.theme3-categories-list-card .theme3-cat-desc { font-size: 0.875rem; color: var(--t3-muted); margin: 0; }
.theme3-categories-list-card .theme3-cat-count-pill {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: #f1f5f9;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--t3-muted);
}

/* ----- Category listing: filter bar + ad grid ----- */
.theme3-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}
@media (max-width: 575.98px) {
    .theme3-filter-bar { flex-direction: column; align-items: stretch; }
}
.theme3-filter-search-wrap {
    position: relative;
    max-width: 24rem;
    flex: 1;
}
.theme3-filter-search-wrap .theme3-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--t3-muted);
    pointer-events: none;
}
.theme3-filter-search-wrap .form-control { padding-left: 2.25rem; }
.theme3-listing-card {
    display: block;
    overflow: hidden;
    border-radius: 0.75rem;
    border: 1px solid var(--t3-border);
    background: var(--t3-card);
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.theme3-listing-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}
.theme3-listing-card:hover .theme3-listing-title { color: var(--t3-primary); }
.theme3-listing-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f1f5f9;
}
.theme3-listing-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.theme3-listing-card:hover .theme3-listing-image-wrap img { transform: scale(1.05); }
.theme3-listing-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--t3-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.theme3-listing-body { padding: 1rem; }
.theme3-listing-title {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--t3-foreground);
    margin-bottom: 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.theme3-listing-price { font-size: 1.25rem; font-weight: 800; color: var(--t3-primary); margin-bottom: 0.75rem; }
.theme3-listing-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--t3-muted);
}
.theme3-listing-meta span { display: inline-flex; align-items: center; gap: 0.25rem; }

/* ----- Dashboard (React-style) ----- */
.theme3-dashboard-wrap {
    min-height: 80vh;
    background: rgba(241, 245, 249, 0.5);
}
.theme3-dashboard-sidebar {
    width: 100%;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .theme3-dashboard-sidebar {
        width: 16rem;
        display: block !important; /* always show common sidebar on account pages */
    }
}
.theme3-dashboard-sidebar-card {
    border-radius: 0.75rem;
    border: 1px solid var(--t3-border);
    background: #fff;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.theme3-dashboard-user-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--t3-border);
    min-width: 0;
}
.theme3-dashboard-user-card > div:last-child {
    min-width: 0;
    overflow: hidden;
}
.theme3-dashboard-user-card p.text-muted {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.theme3-dashboard-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--t3-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.theme3-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.theme3-dashboard-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--t3-radius);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    color: var(--t3-muted);
    transition: background 0.2s, color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.theme3-dashboard-nav-link:hover {
    background: #f1f5f9;
    color: var(--t3-primary);
}
.theme3-dashboard-nav-link.active {
    background: var(--t3-primary);
    color: #fff;
}
.theme3-dashboard-nav-link.active i {
    color: inherit;
}
.theme3-dashboard-nav-link i { width: 1rem; height: 1rem; flex-shrink: 0; }
.theme3-dashboard-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--t3-border);
}
.theme3-dashboard-cta .btn { width: 100%; }
.theme3-dashboard-main { min-width: 0; flex: 1; }
.theme3-dashboard-card {
    border-radius: var(--t3-radius-lg);
    border: 1px solid var(--t3-border);
    background: var(--t3-card);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.theme3-dashboard-card:last-child { margin-bottom: 0; }
.theme3-dashboard-card-title { font-size: 1.125rem; font-weight: 700; margin-bottom: 1rem; }
.theme3-dashboard-stat-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    height: 100%;
}
.theme3-dashboard-stat-card > div:last-child { min-width: 0; }
.theme3-dashboard-stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--t3-radius);
    background: rgba(37, 99, 235, 0.12);
    color: var(--t3-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.theme3-dashboard-stat-value { font-size: 1.5rem; font-weight: 700; color: var(--t3-foreground); line-height: 1.1; }
.theme3-dashboard-stat-label { font-size: 0.75rem; color: var(--t3-muted); line-height: 1.2; margin-top: 0.125rem; }
.theme3-dashboard-stat-change {
    font-size: 0.75rem;
    color: var(--t3-success);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.theme3-dashboard-stat-change i { flex-shrink: 0; }
.theme3-dashboard-recent-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: var(--t3-radius);
    border: 1px solid var(--t3-border);
    margin-bottom: 0.5rem;
}
.theme3-dashboard-recent-item:last-child { margin-bottom: 0; }
.theme3-myads-list .theme3-myad-item { margin-bottom: 1rem; }
.theme3-myads-list .theme3-myad-item:last-child { margin-bottom: 0; }
.theme3-dashboard-mobile-toggle { display: none; }
@media (max-width: 767.98px) {
    .theme3-dashboard-mobile-toggle { display: flex; }
    .theme3-dashboard-sidebar.collapse:not(.show) { display: none; }
    .theme3-dashboard-sidebar.collapse.show { display: block; }
}

/* ----- Footer ----- */
.theme3-footer {
    background-color: hsl(var(--t3-footer-bg));
    color: var(--t3-footer-text);
}
.theme3-footer .container-tight {
    max-width: 72rem;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
@media (min-width: 576px) {
    .theme3-footer .container-tight { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 992px) {
    .theme3-footer .container-tight { padding-left: 2rem; padding-right: 2rem; }
}
.theme3-footer-logo {
    width: 2rem;
    height: 2rem;
    background: var(--t3-primary);
    border-radius: var(--t3-radius);
    flex-shrink: 0;
}
.theme3-footer-brand { font-size: 1.125rem; font-weight: 700; color: #fff; }
.theme3-footer-heading {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.theme3-footer-text { opacity: 0.85; font-size: 0.875rem; }
.theme3-footer-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.85;
    font-size: 0.875rem;
    transition: opacity 0.2s;
}
.theme3-footer-link:hover { opacity: 1; color: #fff; }
.theme3-footer-bottom {
    opacity: 0.75;
    font-size: 0.8125rem;
}
.theme3-footer .theme3-footer-bottom.border-top {
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.theme3-newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    border-radius: var(--t3-radius);
    font-size: 0.875rem;
}
.theme3-newsletter-form .form-control::placeholder { color: rgba(255, 255, 255, 0.6); }
.theme3-newsletter-form .btn-primary {
    background: var(--t3-primary);
    border: none;
    border-radius: var(--t3-radius);
    font-weight: 500;
}
@media (max-width: 575.98px) {
    .theme3-newsletter-form { flex-direction: column; }
    .theme3-newsletter-form .form-control { width: 100%; }
    .theme3-newsletter-form .btn { width: 100%; }
}

/* ----- Form cards ----- */
.theme3-form-card {
    border-radius: var(--t3-radius-lg);
    border: 1px solid var(--t3-border);
    background: var(--t3-card);
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
@media (min-width: 576px) {
    .theme3-form-card { padding: 2rem; }
}
.theme3-form-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: var(--t3-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* ----- Steps (post-ad) ----- */
.theme3-step { width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; }
.theme3-step.active { background: var(--t3-primary); color: #fff; }
.theme3-step.inactive { background: #f1f5f9; color: var(--t3-muted); }
.theme3-step-connector { height: 2px; width: 3rem; border-radius: 2px; }

/* ----- Auth errors ----- */
.theme3-auth-error { background: #fef2f2; color: #b91c1c; padding: 0.5rem 0.75rem; border-radius: var(--t3-radius); margin-bottom: 0.75rem; font-size: 0.875rem; }
.theme3-field-error { font-size: 0.875rem; color: #b91c1c; margin-top: 0.25rem; }

/* ----- Select2 placeholder (post-ad category, state, city) ----- */
/* File input: hide visually without display:none so it still submits on edit (some browsers drop files inside display:none) */
#theme3-file-input.theme3-file-input-hidden {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
}
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__placeholder,
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #6b7280;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection--single .select2-selection__placeholder,
.select2-container--bootstrap-5.select2-container--open .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}
