/* ============================================================
   Barometrul Siguranței Online v2 – Tema ANCOM
   Culori principale: albastru #00468C, roșu #B4141E, griuri
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ANCOM brand */
    --ancom-blue:    #0076BD;
    --ancom-blue-md: #0076BD80;
    --ancom-blue-lt: #0076BD40;
    --ancom-red:     #F05046;
    --ancom-red-lt:  #F0504640;

    /* neutrals */
    --gray-50:   #8C8F96;
    --gray-100:  #8C8F96D9;
    --gray-200:  #8C8F96B3;
    --gray-400:  #8C8F968C;
    --gray-600:  #8C8F9666;
    --gray-800:  #8C8F9640;
    --white:     #FFFFFF;

    --radius:    8px;
    --radius-sm: 5px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.10);
    --shadow:    0 2px 6px rgba(0,0,0,.10);
    --shadow-md: 0 4px 12px rgba(0,0,0,.12);
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--gray-800);
    color: var(--gray-800);
    line-height: 1.6;
    font-size: 14px;
}

/* ── HEADER ── */
.site-header {
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: var(--shadow-md);
	background: #fff;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ANCOM wordmark block */
.ancom-logo {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    color: var(--white);
    padding: 5px 14px;
    border-radius: 3px;
    line-height: 1;
    flex-shrink: 0;
}

#idbackground_header {
   background-image: url("../img/ancom_logo.png");
   width: 15vh;
   height: 5vh;
   background-repeat: no-repeat;
   background-size: cover;
 }
 
 #idbackground_footer {
   background-image: url("../img/ancom_logo_oriz.png");
   width: 25vh;
   height: 3vh;
   background-repeat: no-repeat;
   background-size: cover;
 }

.header-titles h1 {
	color: var(--ancom-blue);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.subtitle {
	color: var(--ancom-blue);
    font-size: 0.78rem;
    opacity: 0.72;
    margin-top: 2px;
}

/* Red accent stripe under header */
.header-stripe {
    height: 3px;
    background: var(--ancom-red);
}

.btn-nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
	background: var(--ancom-blue);
    color: var(--white);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.35);
    transition: background 0.18s, border-color 0.18s;
    white-space: nowrap;
}
.btn-nav:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
}

/* ── PAGE WRAPPER ── */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* ── ALERTS ── */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 18px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid transparent;
}
.alert-icon {
    font-weight: 700;
    font-size: 1rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    line-height: 1;
}
.alert-success {
    background: #EDF7ED;
    border-color: #4caf50;
    color: #2e6b30;
}
.alert-success .alert-icon { background: #4caf50; color: white; }
.alert-error {
    background: var(--ancom-red-lt);
    border-color: var(--ancom-red);
    color: var(--ancom-red);
}
.alert-error .alert-icon { background: var(--ancom-red); color: white; }
.alert-info {
    background: var(--ancom-blue-lt);
    border-color: var(--ancom-blue);
    color: var(--ancom-blue);
}
.alert-info .alert-icon { background: var(--ancom-blue); color: white; }
.alert ul { margin: 4px 0 0 18px; }
.alert a { color: var(--ancom-blue); font-weight: 600; }

/* ── FORM LAYOUT ── */
.form-container {
    max-width: 840px;
    margin: 28px auto;
    padding: 0 16px 56px;
    flex: 1;
}

/* ── SECTION BARS ── */
.section-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--ancom-blue);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    margin: 28px 0 12px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.section-num {
    background: var(--ancom-red);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── QUESTION CARDS ── */
.q-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 10px;
    display: flex;
    overflow: hidden;
    transition: box-shadow 0.18s;
}
.q-card:hover { box-shadow: var(--shadow); }

.q-num {
    background: var(--ancom-blue);
    color: var(--white);
    min-width: 46px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 18px 6px;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.q-body { padding: 18px 22px; flex: 1; }

.q-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 5px;
    line-height: 1.45;
}

.q-hint {
    font-size: 0.78rem;
    color: #0076BD;
    font-style: italic;
    margin-bottom: 12px;
}

/* ── OPTIONS GRID ── */
.opt-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opt-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 12px;
}

.opt-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    color: #000;
    transition: background 0.12s;
    user-select: none;
}
.opt-label:hover { background: var(--gray-800); }

/* Custom checkbox box */
.opt-box {
    width: 16px; height: 16px;
    border: 2px solid var(--gray-400);
    border-radius: 3px;
    flex-shrink: 0;
    transition: border-color 0.12s, background 0.12s;
    position: relative;
    display: inline-block;
}
input[type="checkbox"] { display: none; }
input[type="checkbox"]:checked + .opt-box {
    background: var(--ancom-blue);
    border-color: var(--ancom-blue);
}
input[type="checkbox"]:checked + .opt-box::after {
    content: '';
    position: absolute;
    left: 3px; top: 0px;
    width: 5px; height: 9px;
    border: 2px solid white;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}
input[type="checkbox"]:disabled + .opt-box { opacity: 0.35; }

/* Custom radio */
.opt-radio {
    width: 16px; height: 16px;
    border: 2px solid var(--gray-400);
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.12s;
    position: relative;
    display: inline-block;
}
input[type="radio"] { display: none; }
input[type="radio"]:checked + .opt-radio {
    border-color: var(--ancom-blue);
}
input[type="radio"]:checked + .opt-radio::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    background: var(--ancom-blue);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.radio-grid { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; }

/* Divider line before Nu/Nu știu in Q1 */
.opt-divider { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--gray-100); }

/* Altceva text */
.altceva-wrap { padding: 4px 0 2px 26px; }
.txt-input {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--gray-800);
    width: 100%;
    max-width: 360px;
    transition: border-color 0.15s;
}
.txt-input:focus {
    outline: none;
    border-color: var(--ancom-blue);
    box-shadow: 0 0 0 3px rgba(0,70,140,0.10);
}

/* ── SUBMIT ── */
.form-footer {
    text-align: center;
    margin-top: 32px;
}

.btn-submit {
    background: var(--ancom-blue);
    color: white;
    border: none;
    padding: 12px 42px;
    border-radius: var(--radius-sm);
    font-size: 0.97rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: background 0.18s, transform 0.12s;
}
.btn-submit:hover { background: var(--ancom-blue-md); transform: translateY(-1px); }
.btn-submit:active { transform: translateY(0); }

.privacy-note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #000;
}

/* ── FOOTER ── */
.site-footer {
    background: var(--ancom-blue);
    color: var(--gray-400);
    padding: 16px 28px;
    margin-top: auto;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
}
.footer-brand {
    background: var(--ancom-red);
    color: white;
    padding: 2px 10px;
    border-radius: 3px;
    font-weight: 800;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

/* ══════════════════════════════
   DASHBOARD
══════════════════════════════ */
.dash-page { background: var(--gray-800); }

.dash-container {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 16px 56px;
}

/* KPI row */
.kpi-row {
    gap: 14px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.kpi-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 3px solid var(--ancom-blue);
    border-radius: var(--radius);
    padding: 18px 26px;
    flex: 1;
    min-width: 150px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.kpi-val {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ancom-blue);
    line-height: 1;
}

.kpi-lbl {
    font-size: 0.78rem;
    color: var(--gray-400);
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Charts grid */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.chart-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.chart-card.span-2 { grid-column: 1 / -1; }

.chart-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-800);
}

.q-badge {
    background: var(--ancom-blue);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.chart-hdr h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-50);
    line-height: 1.35;
}
.chart-hdr h3 em {
    font-size: 0.76rem;
    color: var(--gray-50);
    font-style: normal;
}

.chart-body {
    padding: 18px;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-pie { max-height: 270px; }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
    .dash-grid { grid-template-columns: 1fr; }
    .chart-card.span-2 { grid-column: 1; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .opt-grid-3col { grid-template-columns: 1fr 1fr; }
    .radio-grid { flex-direction: column; }
}

#sediu_soc, .sediu_soc{position:absolute !important; overflow: hidden !important; display: inline !important; height:1px !important; width: 1px !important;z-index:-1000 !important;}