:root {
    --bg-color: #e8f5e9;
    /* Soft mint green */
    --card-bg: rgba(255, 255, 255, 0.55);
    /* Semi-transparent white */
    --card-border: rgba(34, 197, 94, 0.25);
    /* Green ring */
    --primary-accent: #22c55e;
    /* Vibrant Green */
    --secondary-accent: #f59e0b;
    /* Solar Amber */
    --text-main: #1e293b;
    /* Dark Slate Blue */
    --text-muted: #475569;
    /* Slate Gray */
    --success-color: #16a34a;
    --error-color: #dc2626;
    --warning-color: #eab308;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --glass-blur: blur(18px);
    --transition-speed: 0.3s;
}

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

body {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 30%, #fef3c7 70%, #fde68a 100%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    animation: floating 12s infinite ease-in-out alternate;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(250, 204, 21, 0.4), transparent 70%);
    /* Sun */
    top: -10%;
    right: -5%;
    opacity: 0.6;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%);
    /* Nature */
    bottom: 5%;
    left: -5%;
    animation-delay: -6s;
    opacity: 0.5;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.3), transparent 65%);
    /* Sky */
    top: 50%;
    left: 40%;
    animation-delay: -3s;
    opacity: 0.4;
}

@keyframes floating {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* Layout */
.app-container {
    width: 100%;
    max-width: 650px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

section {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Glass Cards */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    border-radius: 28px;
    padding: 40px;
    box-shadow:
        0 10px 40px -10px rgba(34, 197, 94, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* Typography */
h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.1rem;
    color: var(--secondary-accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
}

.btn-lg {
    font-size: 1.05rem;
    width: 100%;
    padding: 16px 28px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-accent) 0%, #15803d 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5);
}

.btn-primary:disabled {
    background: #9ca3af;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    color: var(--text-main);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.85);
}

.btn-restart {
    margin-top: 20px;
}

/* Welcome Screen Specifics */
.brand-logo {
    width: 100%;
    max-width: 280px;
    /* Increased default size */
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-left: auto;
    margin-right: auto;
}

/* Dual Logo Layout */
.brand-logo.has-partner {
    max-width: 600px;
}

.brand-logo img {
    width: auto;
    max-height: 160px;
    /* Further increased for Napvadász */
    object-fit: contain;
}

.partner-logo,
.own-logo {
    max-width: 260px;
    /* Further increased width */
}

.logo-separator {
    width: 2px;
    height: 100px;
    /* Taller separator */
    background: linear-gradient(to bottom, transparent, var(--primary-accent), transparent);
    flex-shrink: 0;
}

.header-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.benefits {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 15px;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    font-weight: 500;
}

.benefit-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 12px;
    border-radius: 50%;
    border: 1px solid var(--card-border);
}

/* Progress Bar */
.progress-container {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar-bg {
    flex-grow: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-accent), var(--primary-accent));
    border-radius: 5px;
    transition: width 0.4s ease;
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.progress-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-accent);
    min-width: 50px;
    text-align: right;
}

/* Options Grid */
.options-grid {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(34, 197, 94, 0.15);
    padding: 16px 20px;
    border-radius: 14px;
    text-align: left;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    backdrop-filter: blur(5px);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-accent);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
}

.option-btn .arrow {
    color: var(--primary-accent);
    font-weight: bold;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.option-btn:hover .arrow {
    opacity: 1;
}

.question-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: -5px;
    margin-bottom: 15px;
}

.navigation-controls {
    margin-top: 15px;
    text-align: left;
}

/* Result Styles */
.result-icon {
    font-size: 5rem;
    margin-bottom: 15px;
}

.success-icon {
    color: var(--success-color);
    filter: drop-shadow(0 0 15px rgba(22, 163, 74, 0.4));
}

.fail-icon {
    color: var(--error-color);
    filter: drop-shadow(0 0 15px rgba(220, 38, 38, 0.3));
}

.result-title-success {
    color: var(--success-color) !important;
    font-size: 1.8rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.result-title-fail {
    color: var(--error-color) !important;
    font-size: 1.5rem !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.result-message {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.result-message strong {
    color: var(--success-color);
}

/* Tasks Box */
.tasks-box {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 20px;
    border-radius: 14px;
    text-align: left;
    margin-bottom: 25px;
}

.tasks-box h4 {
    color: #b45309;
    margin-bottom: 12px;
    font-size: 1rem;
}

.tasks-box ul {
    padding-left: 20px;
}

.tasks-box li {
    margin-bottom: 8px;
    color: #78350f;
    line-height: 1.5;
}

/* Reasons Box */
.reasons-box {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    padding: 20px;
    border-radius: 14px;
    text-align: left;
    margin: 20px 0;
}

.reasons-box h4 {
    color: var(--error-color);
    margin-bottom: 10px;
}

#reasons-list {
    padding-left: 20px;
}

#reasons-list li {
    margin-bottom: 8px;
    color: #7f1d1d;
}

/* Contact Help */
.contact-help {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.email-link {
    color: var(--primary-accent);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.email-link:hover {
    color: #15803d;
    text-decoration: underline;
}

/* Lead Form */
.lead-form-container {
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 15px;
}

.lead-form-container h4 {
    color: var(--primary-accent);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.form-intro {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

/* Phone Input with Prefix */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.phone-prefix {
    padding: 14px 12px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--primary-accent);
    font-weight: 600;
    font-size: 1rem;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.phone-input-wrapper input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
}

.phone-input-wrapper input:focus {
    outline: none;
}

.form-row input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

.form-row input::placeholder {
    color: #94a3b8;
}

.form-status {
    margin-top: 15px;
    font-weight: 600;
    font-size: 0.95rem;
    min-height: 1.5em;
}

.form-status.success {
    color: var(--success-color);
}

.form-status.error {
    color: var(--error-color);
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
}

/* Utilities */
.hidden {
    display: none !important;
}

.full-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

/* Mobile responsive adjustments */
@media (max-width: 550px) {
    .form-row {
        flex-direction: column;
    }

    /* ... a fenti részek maradhatnak ... */

    .glass-card {
        padding: 25px 15px;
        /* Kicsit kevesebb oldalsó padding, hogy több helye legyen a logóknak */
        border-radius: 20px;
    }

    .brand-logo {
        gap: 8px;
        /* Kicsi hézag */
        width: 100%;
        justify-content: space-between;
        /* Széthúzza őket a rendelkezésre álló helyen */
    }

    .brand-logo {
        width: 100%;
        display: flex;
        /* Biztos ami biztos */

        /* EZT JAVÍTOTTUK: space-between HELYETT center */
        justify-content: center;

        align-items: center;
        /* Függőlegesen is középre igazít */
        gap: 10px;
        /* Ez a fix távolság a logók és a vonal között */
    }

    .partner-logo,
    .own-logo {
        /* 46% a biztonságos, hogy a középső vonal is elférjen */
        max-width: 46%;
        object-fit: contain;
        /* Biztosítja, hogy a kép benne maradjon a keretben */
    }

    /* Ha a középső elválasztó vonal túl magas lenne, azt is igazíthatjuk: */
    .logo-separator {
        height: 60px;
    }
}