:root {
    --bg-main: #07080A;
    --bg-card: #111318;
    --bg-soft: #181B22;
    --bg-elevated: #20242D;
    --surface-glass: rgba(255, 255, 255, 0.055);
    --primary: #D72638;
    --primary-dark: #A91D2A;
    --primary-soft: rgba(215, 38, 56, 0.13);
    --primary-glow: rgba(215, 38, 56, 0.28);
    --text-main: #FFFFFF;
    --text-muted: #A7ADB8;
    --text-soft: #D6DAE2;
    --border: rgba(255,255,255,0.08);
    --shadow: 0 24px 70px rgba(0,0,0,0.35);
    --header-bg: rgba(7,8,10,0.82);
    --input-bg: #0C0F14;
    --footer-bg: #050609;
    --radius: 22px;
    color-scheme: dark;
}

html[data-theme="light"] {
    --bg-main: #F6F7FA;
    --bg-card: #FFFFFF;
    --bg-soft: #EEF0F4;
    --bg-elevated: #FFFFFF;
    --surface-glass: rgba(255, 255, 255, 0.78);
    --primary: #D72638;
    --primary-dark: #A91D2A;
    --primary-soft: rgba(215, 38, 56, 0.10);
    --primary-glow: rgba(215, 38, 56, 0.18);
    --text-main: #101217;
    --text-muted: #667085;
    --text-soft: #2D3340;
    --border: rgba(16,18,23,0.10);
    --shadow: 0 22px 60px rgba(16,18,23,0.10);
    --header-bg: rgba(255,255,255,0.84);
    --input-bg: #FFFFFF;
    --footer-bg: #101217;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, var(--primary-soft), transparent 34%), var(--bg-main);
    color: var(--text-main);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.public-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.public-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand-link { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -0.03em; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #F45B69); box-shadow: 0 14px 30px var(--primary-glow); }
.brand-text { font-size: 1.15rem; }
.public-nav { display: flex; align-items: center; gap: 6px; }
.public-nav a { color: var(--text-muted); padding: 10px 14px; border-radius: 999px; font-size: .94rem; transition: .2s ease; }
.public-nav a:hover, .public-nav a.active { color: var(--text-main); background: var(--surface-glass); }
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-main); margin: 5px 0; border-radius: 2px; }

.public-main { min-height: 60vh; }
.hero-section { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) 430px; gap: 42px; align-items: center; }
.hero-content h1, .page-hero h1, .profile-heading h1 { margin: 14px 0 16px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .96; letter-spacing: -0.07em; }
.hero-content p, .page-hero p, .section-heading-row p, .section-heading-centered p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; max-width: 650px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--primary); border-radius: 4px; }
.hero-actions, .profile-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; cursor: pointer; transition: .2s ease; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #F45B69); color: var(--text-main); box-shadow: 0 16px 38px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 46px var(--primary-glow); }
.btn-ghost { border-color: var(--border); background: var(--surface-glass); color: var(--text-main); }
.btn-ghost:hover { border-color: rgba(255,255,255,.18); background: var(--surface-glass); }
.btn-full { width: 100%; }
.hero-glow { position: absolute; width: 340px; height: 340px; border-radius: 999px; filter: blur(70px); opacity: .28; pointer-events: none; }
.hero-glow-one { background: var(--primary); right: 7%; top: 12%; }
.hero-glow-two { background: #5e0b13; left: -6%; bottom: 0; }
.search-panel, .filter-panel, .public-form-card, .join-info-card, .content-card, .profile-main-card, .profile-info-card {
    background: linear-gradient(180deg, var(--surface-glass), rgba(255,255,255,.025));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.search-panel { padding: 26px; }
.search-panel h2, .filter-panel h2, .public-form-card h2, .content-card h2 { margin: 0 0 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.form-group label { color: var(--text-muted); font-size: .9rem; font-weight: 700; }
input, select, textarea {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-main);
    min-height: 46px;
    padding: 0 14px;
    outline: none;
    transition: .2s ease;
}
textarea { padding: 14px; min-height: 120px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #ff5b68 50%), linear-gradient(135deg, #ff5b68 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 12px) 19px; background-size: 6px 6px; background-repeat: no-repeat; }
input:focus, select:focus, textarea:focus { border-color: rgba(225,29,46,.7); box-shadow: 0 0 0 4px rgba(225,29,46,.13); }
.public-section { padding: 70px 0; }
.section-muted { background: rgba(255,255,255,.025); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading-row h2, .section-heading-centered h2, .provider-cta h2 { margin: 12px 0 8px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.05em; }
.section-heading-centered { text-align: center; margin-bottom: 28px; }
.section-heading-centered .eyebrow { justify-content: center; }
.text-link { color: var(--primary); font-weight: 800; }
.provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.provider-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 18px; transition: .2s ease; }
.provider-card:hover { transform: translateY(-4px); border-color: rgba(225,29,46,.35); }
.provider-card-top { display: flex; gap: 14px; align-items: center; }
.provider-card-top img { width: 58px; height: 58px; border-radius: 16px; object-fit: cover; background: var(--bg-soft); }
.provider-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.provider-card p { margin: 0; color: var(--text-muted); line-height: 1.6; }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.badge { padding: 6px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.badge-verified { background: rgba(34,197,94,.14); color: #86efac; }
.badge-featured { background: var(--primary-soft); color: #ff7a86; }
.provider-desc { min-height: 54px; }
.provider-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.provider-card-footer span { color: var(--text-main); font-weight: 800; }
.provider-card-footer a { color: var(--primary); font-weight: 800; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.category-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; display: flex; align-items: center; gap: 14px; transition: .2s ease; }
.category-card:hover { border-color: rgba(225,29,46,.35); transform: translateY(-3px); }
.category-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); font-weight: 900; overflow: hidden; }
.category-icon img { width: 24px; height: 24px; object-fit: contain; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.how-card span { color: var(--primary); font-weight: 900; }
.how-card h3 { margin: 12px 0 8px; }
.how-card p { color: var(--text-muted); line-height: 1.7; }
.provider-cta { margin-bottom: 70px; padding: 34px; border: 1px solid rgba(225,29,46,.24); border-radius: 26px; background: linear-gradient(135deg, rgba(225,29,46,.18), rgba(255,255,255,.04)); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.provider-cta p { color: var(--text-muted); }
.page-hero { padding: 70px 0 50px; background: radial-gradient(circle at 20% 0%, rgba(225,29,46,.18), transparent 34%); border-bottom: 1px solid var(--border); }
.page-hero.compact h1 { font-size: clamp(2.1rem, 5vw, 4rem); }
.providers-layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; }
.filter-panel { padding: 22px; position: sticky; top: 96px; }
.results-topbar { margin-bottom: 16px; display: flex; justify-content: space-between; }
.results-topbar h2 { margin: 0; }
.list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.category-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.category-chips span { padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--text-muted); font-size: .75rem; }
.empty-state { background: var(--bg-card); border: 1px dashed rgba(255,255,255,.18); border-radius: 18px; padding: 28px; color: var(--text-muted); text-align: center; }
.empty-state.wide { grid-column: 1 / -1; }
.join-layout { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; align-items: start; }
.public-form-card, .join-info-card, .content-card, .profile-main-card, .profile-info-card { padding: 26px; }
.form-row { display: grid; gap: 16px; }
.form-row.two { grid-template-columns: repeat(2, 1fr); }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
.price-card { background: rgba(255,255,255,.04); border: 1px solid var(--border); border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.price-card.featured { border-color: rgba(225,29,46,.38); background: var(--primary-soft); }
.price-card span { color: var(--text-muted); }
.price-card strong { display: block; font-size: 1.5rem; margin: 8px 0; }
.price-card p { color: var(--text-muted); margin: 0; line-height: 1.6; }
.alert { border-radius: 14px; padding: 14px; margin-bottom: 16px; font-weight: 700; }
.alert-success { background: rgba(34,197,94,.13); color: #86efac; border: 1px solid rgba(34,197,94,.24); }
.alert-error { background: rgba(239,68,68,.13); color: #fca5a5; border: 1px solid rgba(239,68,68,.24); }
.content-card p { color: var(--text-muted); line-height: 1.8; }
.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.profile-hero { padding: 72px 0 52px; background: radial-gradient(circle at 12% 0%, rgba(225,29,46,.2), transparent 40%); border-bottom: 1px solid var(--border); }
.profile-hero-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 28px; align-items: center; }
.profile-logo-wrap { width: 170px; height: 170px; border-radius: 34px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: var(--bg-card); box-shadow: var(--shadow); }
.profile-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-heading p { color: var(--text-muted); font-size: 1.1rem; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.profile-main-card h2, .profile-info-card h2 { margin-top: 0; margin-bottom: 16px; }
.profile-main-card p { color: var(--text-muted); line-height: 1.9; }
.profile-category-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.profile-category-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 999px; padding: 9px 12px; font-weight: 800; }
.profile-category-chip img { width: 20px; height: 20px; object-fit: contain; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { padding: 0; border: 0; background: transparent; border-radius: 16px; overflow: hidden; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 1.15 / 1; object-fit: cover; transition: .2s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.info-list { display: grid; gap: 12px; }
.info-list div { background: rgba(255,255,255,.045); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.info-list span { display: block; color: var(--text-muted); font-size: .82rem; margin-bottom: 5px; }
.info-list strong { line-height: 1.5; }
.image-modal { position: fixed; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.image-modal.active { display: flex; }
.image-modal img { max-height: 82vh; border-radius: 18px; box-shadow: var(--shadow); }
.image-modal button { position: absolute; top: 24px; right: 24px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-main); font-size: 1.7rem; cursor: pointer; }
.public-footer { border-top: 1px solid var(--border); background: var(--footer-bg); padding-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 30px; }
.footer-brand { font-size: 1.3rem; font-weight: 900; margin-bottom: 12px; }
.public-footer p, .public-footer a { color: var(--text-muted); line-height: 1.8; }
.public-footer h4 { margin: 0 0 12px; }
.public-footer a { display: block; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 36px; padding: 18px; color: var(--text-muted); text-align: center; }


.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

html[data-theme="light"] body {
    background: radial-gradient(circle at top left, var(--primary-soft), transparent 34%), var(--bg-main);
}
html[data-theme="light"] .brand-mark {
    color: #fff;
}
html[data-theme="light"] .btn-primary {
    color: #fff;
}
html[data-theme="light"] .btn-ghost {
    background: #fff;
    color: var(--text-main);
}
html[data-theme="light"] .search-panel,
html[data-theme="light"] .filter-panel,
html[data-theme="light"] .public-form-card,
html[data-theme="light"] .join-info-card,
html[data-theme="light"] .content-card,
html[data-theme="light"] .profile-main-card,
html[data-theme="light"] .profile-info-card {
    background: rgba(255,255,255,.82);
}
html[data-theme="light"] .section-muted {
    background: #FFFFFF;
}
html[data-theme="light"] .public-footer,
html[data-theme="light"] .public-footer p,
html[data-theme="light"] .public-footer a,
html[data-theme="light"] .footer-bottom {
    color: #C7CCD6;
}
html[data-theme="light"] .public-footer h4,
html[data-theme="light"] .footer-brand {
    color: #FFFFFF;
}
html[data-theme="light"] select {
    background-color: var(--input-bg);
}

@media (max-width: 920px) {
    .nav-toggle { display: block; }
    .public-nav { position: absolute; left: 16px; right: 16px; top: 78px; display: none; flex-direction: column; align-items: stretch; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 12px; box-shadow: var(--shadow); }
    .public-nav.open { display: flex; }
    .hero-grid, .providers-layout, .join-layout, .profile-layout, .contact-grid, .profile-hero-grid { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .provider-grid, .list-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .how-grid, .form-row.two, .form-row.three, .footer-grid { grid-template-columns: 1fr; }
    .provider-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
    .public-container { width: min(100% - 22px, 1180px); }
    .hero-section { padding: 54px 0; }
    .provider-grid, .list-grid, .category-grid, .gallery-grid { grid-template-columns: 1fr; }
    .section-heading-row { flex-direction: column; align-items: flex-start; }
    .profile-logo-wrap { width: 128px; height: 128px; border-radius: 26px; }
    .hero-content h1, .page-hero h1, .profile-heading h1 { letter-spacing: -0.045em; }
}


/* Professional theme button */
.theme-toggle-pro {
    min-width: 116px;
    height: 46px;
    padding: 0 14px 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.10);
    background: linear-gradient(180deg, rgba(20,23,29,.96), rgba(13,15,19,.96));
    box-shadow: 0 12px 26px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
    color: var(--text-main);
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.theme-toggle-pro:hover {
    transform: translateY(-1px);
    border-color: rgba(215, 38, 56, .34);
    box-shadow: 0 16px 30px rgba(0,0,0,.34), 0 0 0 4px rgba(215, 38, 56, .10);
}

.theme-toggle-pro:focus-visible {
    outline: none;
    border-color: rgba(215, 38, 56, .54);
    box-shadow: 0 0 0 4px rgba(215, 38, 56, .16);
}

.theme-toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
}

.theme-toggle-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.theme-toggle-label {
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.theme-toggle-pro .icon-sun {
    display: none;
}

html[data-theme="light"] .theme-toggle-pro .icon-sun {
    display: block;
}

html[data-theme="light"] .theme-toggle-pro .icon-moon {
    display: none;
}

html[data-theme="light"] .theme-toggle-pro {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,244,248,.98));
    color: #16181d;
    border-color: rgba(18,22,29,.12);
    box-shadow: 0 12px 24px rgba(18,22,29,.08), inset 0 1px 0 rgba(255,255,255,.9);
}

html[data-theme="light"] .theme-toggle-pro .theme-toggle-icon {
    background: rgba(18,22,29,.06);
}

/* Light/Dark logo switching */
.brand-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    display: block;
    max-height: 42px;
    width: auto;
    object-fit: contain;
}

.brand-logo-light {
    display: none;
}

.brand-logo-dark {
    display: block;
}

html[data-theme="light"] .brand-logo-light {
    display: block;
}

html[data-theme="light"] .brand-logo-dark {
    display: none;
}

@media (max-width: 640px) {
    .theme-toggle-pro {
        min-width: 46px;
        padding: 0;
    }

    .theme-toggle-label {
        display: none;
    }
}


/* Tailwind bridge enhancements */
@media (max-width: 1279px) {}

/* =========================
   Unified public form fields
   Inputs, textareas, and dropdowns use same background/opacity
========================= */
:root {
    --public-field-bg: rgba(255, 255, 255, 0.92);
    --public-field-border: rgba(24, 24, 27, 0.14);
    --public-field-text: #18181b;
    --public-field-muted: #71717a;
    --public-field-focus: rgba(215, 38, 56, 0.72);
}

body.dark,
.dark {
    --public-field-bg: rgba(17, 19, 24, 0.88);
    --public-field-border: rgba(255, 255, 255, 0.12);
    --public-field-text: #f8fafc;
    --public-field-muted: #a1a1aa;
    --public-field-focus: rgba(248, 113, 113, 0.72);
}

.public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.public-site textarea,
.public-site select,
.hero-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.hero-search-form textarea,
.hero-search-form select,
.public-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.public-section textarea,
.public-section select,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group textarea,
.form-group select,
.filter-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.filter-form textarea,
.filter-form select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid var(--public-field-border);
    background-color: var(--public-field-bg) !important;
    color: var(--public-field-text);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    outline: none;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.public-site textarea,
.public-section textarea,
.form-group textarea,
.filter-form textarea {
    min-height: 120px;
    padding-top: 14px;
    padding-bottom: 14px;
    resize: vertical;
    line-height: 1.55;
}

.public-site select,
.hero-search-form select,
.public-section select,
.form-group select,
.filter-form select {
    padding-right: 46px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #D72638 50%),
        linear-gradient(135deg, #D72638 50%, transparent 50%),
        linear-gradient(to right, rgba(24, 24, 27, 0.10), rgba(24, 24, 27, 0.10));
    background-position:
        calc(100% - 25px) 50%,
        calc(100% - 18px) 50%,
        calc(100% - 44px) 50%;
    background-size:
        7px 7px,
        7px 7px,
        1px 26px;
    background-repeat: no-repeat;
}

body.dark .public-site select,
.dark .public-site select,
body.dark .hero-search-form select,
.dark .hero-search-form select,
body.dark .public-section select,
.dark .public-section select,
body.dark .form-group select,
.dark .form-group select,
body.dark .filter-form select,
.dark .filter-form select {
    background-image:
        linear-gradient(45deg, transparent 50%, #f87171 50%),
        linear-gradient(135deg, #f87171 50%, transparent 50%),
        linear-gradient(to right, rgba(255,255,255,0.12), rgba(255,255,255,0.12));
}

.public-site input::placeholder,
.public-site textarea::placeholder,
.public-section input::placeholder,
.public-section textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder,
.filter-form input::placeholder,
.filter-form textarea::placeholder {
    color: var(--public-field-muted);
    opacity: .9;
}

.public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.public-site textarea:hover,
.public-site select:hover,
.hero-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.hero-search-form textarea:hover,
.hero-search-form select:hover,
.public-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.public-section textarea:hover,
.public-section select:hover,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.form-group textarea:hover,
.form-group select:hover,
.filter-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):hover,
.filter-form textarea:hover,
.filter-form select:hover {
    border-color: rgba(215, 38, 56, 0.38);
}

.public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.public-site textarea:focus,
.public-site select:focus,
.hero-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.hero-search-form textarea:focus,
.hero-search-form select:focus,
.public-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.public-section textarea:focus,
.public-section select:focus,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.form-group textarea:focus,
.form-group select:focus,
.filter-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.filter-form textarea:focus,
.filter-form select:focus {
    border-color: var(--public-field-focus);
    box-shadow: 0 0 0 4px rgba(215, 38, 56, 0.12), 0 14px 34px rgba(15, 23, 42, 0.08);
}

body.dark .public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.dark .public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body.dark .public-site textarea:focus,
.dark .public-site textarea:focus,
body.dark .public-site select:focus,
.dark .public-site select:focus,
body.dark .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
.dark .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):focus,
body.dark .form-group textarea:focus,
.dark .form-group textarea:focus,
body.dark .form-group select:focus,
.dark .form-group select:focus {
    box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.13), 0 16px 38px rgba(0,0,0,.24);
}

.public-site select option,
.hero-search-form select option,
.public-section select option,
.form-group select option,
.filter-form select option {
    color: #18181b;
    background: #ffffff;
    font-weight: 700;
    padding: 12px 14px;
}

body.dark select option,
.dark select option {
    color: #f8fafc;
    background: #111318;
}

.public-site select option:checked,
.hero-search-form select option:checked,
.public-section select option:checked,
.form-group select option:checked,
.filter-form select option:checked {
    background: #D72638;
    color: #ffffff;
}

/* =========================
   Frontend field dark/light final override
   Dark mode = backend-style dark fields
   Light mode = clean light fields
========================= */
:root {
    --frontend-field-bg-light: rgba(255, 255, 255, 0.94);
    --frontend-field-border-light: rgba(24, 24, 27, 0.12);
    --frontend-field-text-light: #18181b;
    --frontend-field-muted-light: #71717a;

    --frontend-field-bg-dark: rgba(255, 255, 255, 0.055);
    --frontend-field-border-dark: rgba(255, 255, 255, 0.12);
    --frontend-field-text-dark: #f8fafc;
    --frontend-field-muted-dark: #a1a1aa;
}

.public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.public-site textarea,
.public-site select,
.hero-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.hero-search-form textarea,
.hero-search-form select,
.public-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.public-section textarea,
.public-section select,
.form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.form-group textarea,
.form-group select,
.filter-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.filter-form textarea,
.filter-form select {
    background-color: var(--frontend-field-bg-light) !important;
    border-color: var(--frontend-field-border-light) !important;
    color: var(--frontend-field-text-light) !important;
    box-shadow: 0 10px 30px rgba(15,23,42,.06) !important;
}

.public-site input::placeholder,
.public-site textarea::placeholder,
.public-section input::placeholder,
.public-section textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder,
.filter-form input::placeholder,
.filter-form textarea::placeholder {
    color: var(--frontend-field-muted-light) !important;
    opacity: .9;
}

body.dark .public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.dark .public-site textarea,
body.dark .public-site select,
body.dark .hero-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.dark .hero-search-form textarea,
body.dark .hero-search-form select,
body.dark .public-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.dark .public-section textarea,
body.dark .public-section select,
body.dark .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.dark .form-group textarea,
body.dark .form-group select,
body.dark .filter-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body.dark .filter-form textarea,
body.dark .filter-form select,
.dark .public-site input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dark .public-site textarea,
.dark .public-site select,
.dark .hero-search-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dark .hero-search-form textarea,
.dark .hero-search-form select,
.dark .public-section input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dark .public-section textarea,
.dark .public-section select,
.dark .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dark .form-group textarea,
.dark .form-group select,
.dark .filter-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dark .filter-form textarea,
.dark .filter-form select {
    background-color: var(--frontend-field-bg-dark) !important;
    border-color: var(--frontend-field-border-dark) !important;
    color: var(--frontend-field-text-dark) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 10px 28px rgba(0,0,0,.12) !important;
}

body.dark .public-site input::placeholder,
body.dark .public-site textarea::placeholder,
body.dark .public-section input::placeholder,
body.dark .public-section textarea::placeholder,
body.dark .form-group input::placeholder,
body.dark .form-group textarea::placeholder,
body.dark .filter-form input::placeholder,
body.dark .filter-form textarea::placeholder,
.dark .public-site input::placeholder,
.dark .public-site textarea::placeholder,
.dark .public-section input::placeholder,
.dark .public-section textarea::placeholder,
.dark .form-group input::placeholder,
.dark .form-group textarea::placeholder,
.dark .filter-form input::placeholder,
.dark .filter-form textarea::placeholder {
    color: var(--frontend-field-muted-dark) !important;
}

.public-site select,
.hero-search-form select,
.public-section select,
.form-group select,
.filter-form select {
    background-image:
        linear-gradient(45deg, transparent 50%, #D72638 50%),
        linear-gradient(135deg, #D72638 50%, transparent 50%),
        linear-gradient(to right, rgba(24,24,27,.10), rgba(24,24,27,.10)) !important;
}

body.dark .public-site select,
body.dark .hero-search-form select,
body.dark .public-section select,
body.dark .form-group select,
body.dark .filter-form select,
.dark .public-site select,
.dark .hero-search-form select,
.dark .public-section select,
.dark .form-group select,
.dark .filter-form select {
    background-image:
        linear-gradient(45deg, transparent 50%, #f87171 50%),
        linear-gradient(135deg, #f87171 50%, transparent 50%),
        linear-gradient(to right, rgba(255,255,255,.12), rgba(255,255,255,.12)) !important;
}

.public-site select option,
.hero-search-form select option,
.public-section select option,
.form-group select option,
.filter-form select option {
    color: #18181b;
    background: #ffffff;
    font-weight: 800;
}

body.dark select option,
.dark select option {
    color: #f8fafc;
    background: #111318;
    font-weight: 800;
}/* Join page wider centered form */
.join-layout {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.join-layout .public-form-card {
    width: min(100%, 1120px);
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .join-layout .public-form-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Professional company/legal page content */
.page-content-card {
    max-width: 1040px;
    margin: 0 auto;
    padding: 42px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,255,255,.46)),
        radial-gradient(circle at top left, rgba(245, 158, 11, .10), transparent 32%);
    border: 1px solid rgba(24,24,27,.09);
    box-shadow: 0 24px 80px rgba(15,23,42,.08);
    backdrop-filter: blur(18px);
}

.managed-page-content {
    color: var(--text, #18181b);
}

.managed-page-content h2,
.page-content-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    letter-spacing: -0.02em;
}

.managed-page-content h3,
.page-content-card h3 {
    margin: 22px 0 10px;
    font-size: 1.08rem;
}

.managed-page-content h2:not(:first-child),
.page-content-card h2:not(:first-child) {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(24,24,27,.10);
}

.managed-page-content p,
.managed-page-content li,
.page-content-card p,
.page-content-card li {
    line-height: 1.78;
    opacity: .82;
    font-weight: 620;
}

.managed-page-content ul,
.managed-page-content ol,
.page-content-card ul,
.page-content-card ol {
    padding-left: 22px;
    margin: 14px 0 20px;
}

.managed-page-updated {
    margin-bottom: 26px;
    border: 1px solid rgba(24,24,27,.08);
    background: rgba(245, 158, 11, .10);
    color: inherit;
}

body.dark .page-content-card,
.dark .page-content-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
        radial-gradient(circle at top left, rgba(245, 158, 11, .12), transparent 34%);
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 24px 80px rgba(0,0,0,.24);
}

body.dark .managed-page-content h2:not(:first-child),
.dark .managed-page-content h2:not(:first-child),
body.dark .page-content-card h2:not(:first-child),
.dark .page-content-card h2:not(:first-child) {
    border-top-color: rgba(255,255,255,.10);
}

body.dark .managed-page-updated,
.dark .managed-page-updated {
    border-color: rgba(255,255,255,.10);
    background: rgba(245, 158, 11, .13);
}

@media (max-width: 768px) {
    .page-content-card {
        padding: 26px;
        border-radius: 24px;
    }
}
