:root {
    --primary: #005f73;
    --primary-dark: #003e4d;
    --accent: #0a9396;
    --warning: #e17055;
    --bg: #f4f6f8;
    --white: #ffffff;
    --text-main: #2d3436;
    --text-light: #636e72;
    --radius: 16px;
    --shadow: 0 10px 40px rgba(0, 95, 115, 0.15);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HERO SECTION --- */
.hero-header {
    background: linear-gradient(135deg, rgba(0, 95, 115, 0.95), rgba(0, 40, 50, 0.8)), url('../fshero.jpg');
    background-size: cover;
    background-position: center;
    height: 340px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    color: white;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

/* --- MAIN LAYOUT --- */
.layout {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 95%;
    margin: -120px auto 40px;
    gap: 30px;
    position: relative;
    z-index: 10;
}

/* --- LEFT PANEL: QUESTIONNAIRE --- */
.question-panel {
    flex: 1.5;
    min-width: 400px;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

/* LOGO HEADER */
.brand-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 25px;
}

.brand-logo {
    max-width: 240px;
    height: auto;
    width: 100%;
    display: block;
}

/* --- RIGHT PANEL: RESULTS --- */
.result-panel {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

/* --- TRUST BADGE --- */
.trust-badge {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 2px solid #f4f6f8;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.trust-icon {
    font-size: 2rem;
    line-height: 1;
}

.trust-content strong {
    display: block;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.trust-content p {
    margin: 0;
    font-size: 0.8rem;
    color: #777;
    line-height: 1.5;
}

/* --- UI COMPONENTS --- */
h2 { font-size: 1.25rem; color: var(--primary); margin-top: 0; }
h3 { margin-top: 35px; margin-bottom: 15px; color: var(--text-main); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; border-left: 4px solid var(--accent); padding-left: 12px; }

.question-block { margin-bottom: 25px; position: relative; }

.label-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.q-text {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    margin: 0;
    flex: 1;
}

/* --- TOOLTIPS --- */
.info-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    background-color: #e0e6e8;
    color: var(--primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 8px;
    position: relative;
    flex-shrink: 0;
}

.tooltip-text {
    visibility: hidden;
    width: 250px;
    background-color: #2d3436;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    pointer-events: none;
}

.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #2d3436 transparent transparent transparent;
}

.info-icon:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    background: #fcfcfc;
    font-size: 0.95rem;
    cursor: pointer;
    transition: border 0.3s;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 115, 0.1);
}

/* --- SCORE BOX --- */
.score-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.score-circle {
    background: var(--primary);
    color: white;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    box-shadow: 0 10px 25px rgba(0, 95, 115, 0.25);
    transition: background 0.3s;
}

.big-score { font-size: 3.5rem; font-weight: 700; line-height: 1; }
.score-label { font-size: 0.75rem; text-transform: uppercase; opacity: 0.9; margin-bottom: 5px; }

#riskLevel { font-weight: 700; font-size: 1.2rem; margin-top: 10px; display: block; }

/* --- RECOMMENDATION BOX --- */
.recommendation-box {
    background: #fff;
    border-left: 4px solid var(--primary);
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
    text-align: left;
    background-color: #f8fcfd;
    display: none;
}

.rec-title {
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.rec-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

/* --- CHART & DOWNLOAD --- */
.chart-container {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* --- LOCKED OVERLAY --- */
.locked-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius);
    transition: opacity 0.5s ease;
}

.locked-content {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    max-width: 320px;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.8);
}

.unlocked .locked-overlay {
    opacity: 0;
    pointer-events: none;
}

.blur-target {
    transition: filter 0.5s ease;
    filter: blur(6px);
}

.unlocked .blur-target {
    filter: blur(0);
}

.unlock-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    font-size: 1rem;
    margin-top: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.unlock-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 95, 115, 0.3);
}

.unlock-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 12px;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* --- CONSENT CHECKBOX --- */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    font-size: 0.75rem;
    color: #666;
    text-align: left;
    line-height: 1.4;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.consent-label a {
    color: var(--primary);
    text-decoration: underline;
}

.consent-label a:hover {
    color: var(--accent);
}

/* --- CLOUDGUARDED CTA --- */
.cta-box {
    background: linear-gradient(135deg, #f8fcfd 0%, #e8f4f8 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
}

.cta-content h3 {
    color: var(--primary);
    margin: 0 0 10px 0;
    font-size: 1.1rem;
}

.cta-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    color: white;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10, 147, 150, 0.3);
}

.cta-footer {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
}

.cta-footer strong {
    color: var(--primary);
}

/* --- FOOTER --- */
.legal-footer {
    margin-top: auto;
    padding: 40px 20px;
    background: #fff;
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    border-top: 1px solid #eee;
    line-height: 1.6;
}

/* --- COOKIE NOTICE --- */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d3436;
    color: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    font-size: 0.85rem;
}

.cookie-notice p {
    margin: 0;
    max-width: 600px;
    line-height: 1.5;
}

.cookie-notice a {
    color: var(--accent);
}

.cookie-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.cookie-btn:hover {
    background: var(--primary-dark);
}

/* --- RESPONSIVE --- */
@media (max-width: 800px) {
    .hero-header { height: auto; padding-bottom: 80px; }
    .layout { margin-top: -50px; flex-direction: column; }
    .question-panel { min-width: auto; }
    .tooltip-text { left: auto; right: 0; margin-left: 0; width: 200px; }
    .cookie-notice { flex-direction: column; text-align: center; gap: 10px; }
}
