:root {
    --primary: #667eea;
    --primary-dark: #764ba2;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: var(--text-dark);
}

.header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%), 
                url('../Gemini_Generated_Image_8zs6x68zs6x68zs6.png') center/contain no-repeat;
    color: white;
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

.lang-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px;
    border-radius: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.lang-btn.active {
    background: white;
    color: var(--primary);
}

h1 {
    font-size: 40px;
    margin-bottom: 12px;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 18px;
    opacity: 0.98;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.main {
    max-width: 900px;
    margin: 0 auto;
}

.container {
    padding: 50px 30px;
}

.form-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
    color: var(--text-dark);
}

.filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 40px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.toggle-switches {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

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

.switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: #ddd;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

.switch.active {
    background: var(--primary);
}

.switch-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: left 0.3s;
}

.switch.active .switch-dot {
    left: 24px;
}

.toggle label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-dark);
}

.slider-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-wrapper {
    flex: 1;
    position: relative;
}

.slider-base {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    position: relative;
}

.slider-fill {
    position: absolute;
    height: 6px;
    background: var(--primary);
    border-radius: 3px;
    top: 0;
    z-index: 1;
}

input[type="range"].slider-input {
    position: absolute;
    width: 100%;
    height: 6px;
    top: 0;
    left: 0;
    background: none;
    border: none;
    pointer-events: none;
    -webkit-appearance: none;
    z-index: 2;
}

input[type="range"].slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--primary);
}

input[type="range"].slider-input::-webkit-slider-thumb:hover {
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
    transform: scale(1.15);
}

input[type="range"].slider-input::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--primary);
}

input[type="range"].slider-input::-moz-range-thumb:hover {
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.5);
    transform: scale(1.15);
}

input[type="range"].slider-input::-moz-range-track {
    background: none;
    border: none;
}

.slider-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    min-width: 140px;
    text-align: right;
}

.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
    align-items: center;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox label {
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-dark);
}

.button-area {
    text-align: center;
    margin: 50px 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 16px 50px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 10px 15px 10px;
    transition: all 0.2s;
    min-width: 200px;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #f0f0f0;
    color: var(--text-dark);
    padding: 12px 30px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.results {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 100%);
    padding: 60px 40px;
    border-radius: 12px;
    text-align: center;
    margin: 60px 0;
    border: 2px solid rgba(102, 126, 234, 0.15);
    display: none;
}

.results.show {
    display: block;
}

.results-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 0;
    font-weight: 600;
}

.percentage-value {
    font-size: 64px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0;
}

.percentage-sign {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-dark);
}

.results-detail {
    font-size: 15px;
    color: var(--text-light);
    margin-top: 30px;
    line-height: 1.8;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    display: none;
}

.error.show {
    display: block;
}

.ad-space {
    background: #f0f0f0;
    border: 1px dashed #ccc;
    padding: 50px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    margin: 60px 0;
    border-radius: 6px;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer {
    background: var(--bg-light);
    padding: 30px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
    border-top: 1px solid #eee;
}

.portal-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin: 60px 0;
}

.btn-portal {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 20px 50px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    width: 300px;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-portal:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

@media (max-width: 768px) {
    .header {
        padding: 40px 20px;
    }

    h1 {
        font-size: 32px;
    }

    .tagline {
        font-size: 16px;
    }

    .container {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .filters {
        gap: 20px;
        margin-bottom: 30px;
    }

    .percentage-value {
        font-size: 48px;
    }

    .percentage-sign {
        font-size: 36px;
    }

    .results {
        padding: 40px 20px;
        margin: 40px 0;
    }

    .btn-portal {
        width: 250px;
        padding: 18px 40px;
        font-size: 16px;
    }

    .button-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .btn-primary {
        min-width: 250px;
        padding: 14px 40px;
        font-size: 16px;
    }

    .btn-secondary {
        min-width: 200px;
        padding: 12px 30px;
        font-size: 14px;
    }

    .slider-value {
        min-width: 120px;
        font-size: 14px;
    }

    .switch {
        width: 60px;
        height: 32px;
    }

    .switch-dot {
        width: 28px;
        height: 28px;
    }

    .switch.active .switch-dot {
        left: 28px;
    }

    input[type="range"].slider-input::-webkit-slider-thumb {
        width: 20px;
        height: 20px;
    }

    input[type="range"].slider-input::-moz-range-thumb {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 30px 15px;
    }

    h1 {
        font-size: 28px;
    }

    .tagline {
        font-size: 14px;
    }

    .container {
        padding: 20px 15px;
    }

    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
    }

    .filters {
        gap: 15px;
        margin-bottom: 25px;
    }

    .percentage-value {
        font-size: 40px;
    }

    .percentage-sign {
        font-size: 30px;
    }

    .results {
        padding: 30px 15px;
        margin: 30px 0;
    }

    .results-detail {
        font-size: 14px;
    }

    .btn-primary {
        min-width: 220px;
        padding: 12px 30px;
        font-size: 15px;
    }

    .btn-secondary {
        min-width: 180px;
        padding: 10px 25px;
        font-size: 13px;
    }

    .slider-value {
        min-width: 100px;
        font-size: 13px;
    }

    .ad-space {
        padding: 30px 15px;
        margin: 40px 0;
        min-height: 200px;
    }

    .footer {
        padding: 20px 15px;
        font-size: 12px;
    }
}
