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

body {
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.container {
    max-width: 800px;
    width: 90%;
    margin: 2rem auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    position: relative;
}

header {
    background-color: #ffffff;
    color: #333;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 3px solid #0057ff;
    border-radius: 9px 9px 0 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 60%;
}

#aml-logo {
    height: 80px;
    width: auto;
    vertical-align: middle;
}

.logo span {
    display: inline-block;
    vertical-align: middle;
    color: #333;
    line-height: 1.2;
}

.language-switcher {
    position: relative;
    flex-shrink: 0;
}

.language-dropdown {
    position: relative;
}

.language-dropdown-btn {
    background-color: #0057ff;
    border: 1px solid #0057ff;
    border-radius: 6px;
    color: #fff;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: space-between;
    font-weight: 500;
}

.language-dropdown-btn:hover {
    background-color: #0046cc;
    border-color: #0046cc;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.language-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.language-dropdown.open .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    margin: 2px;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #e3f2fd;
    color: #0057ff;
}

.language-option .flag {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.language-option .name {
    font-size: 0.85rem;
    font-weight: 500;
}

main {
    padding: 2rem;
    min-height: 400px;
}

.question-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h2 {
    color: #0057ff;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

#question-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #333;
}

#options-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0.02);
}

.option-item:hover {
    border-color: #0057ff;
    background-color: rgba(0, 87, 255, 0.05);
    transform: translateX(5px);
}

.option-item.selected {
    border-color: #0057ff;
    background-color: rgba(0, 87, 255, 0.1);
    position: relative;
}

.option-item.selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #0057ff;
    border-radius: 4px 0 0 4px;
}

.radio-custom {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin-right: 10px;
    transition: all 0.2s ease;
}

.option-item.selected .radio-custom {
    border-color: #0057ff;
}

.option-item.selected .radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background-color: #0057ff;
    border-radius: 50%;
    animation: selectFade 0.3s ease;
}

@keyframes selectFade {
    from {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.option-text {
    flex: 1;
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

button {
    background-color: #0057ff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background-color: #0046cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.5);
}

#prev-btn {
    background-color: transparent;
    color: #0057ff;
    border: 1px solid #0057ff;
}

#prev-btn:hover:not(:disabled) {
    background-color: rgba(0, 87, 255, 0.1);
}

.result-section {
    padding: 2rem;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

#result-title {
    color: #0057ff;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#result-text {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

#total-score {
    font-weight: bold;
    font-size: 1.5rem;
    color: #0057ff;
}

#recommendation {
    background-color: rgba(0, 0, 0, 0.02);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
    position: relative;
    border-left: 5px solid #0057ff;
}

footer {
    background-color: #f5f5f5;
    padding: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.progress-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    height: 10px;
    width: 100%;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.progress-bar {
    height: 10px;
    border-radius: 20px;
    transition: width 0.3s ease, background-color 0.5s ease;
    background-color: #3cb371;
}

.progress-bar.safe {
    background-color: #3cb371;
}

.progress-bar.moderate {
    background-color: #ffa500;
}

.progress-bar.high-risk {
    background-color: #dc3545;
}

.progress-text {
    font-size: 0.9rem;
    color: #555;
    text-align: right;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        margin: 1rem auto;
        border-radius: 10px;
    }
    
    header {
        padding: 1rem;
        border-radius: 7px 7px 0 0;
    }
    
    .logo {
        font-size: 1.2rem;
        text-align: center;
        margin-bottom: 10px;
        justify-content: center;
    }
    
    #aml-logo {
        height: 60px;
    }
    
    .language-switcher {
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
    }
    
    .language-dropdown-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .language-dropdown-menu {
        right: auto;
        left: 50%;
        transform: translateX(-50%) translateY(-8px);
        min-width: 140px;
    }
    
    .language-dropdown.open .language-dropdown-menu {
        transform: translateX(-50%) translateY(0);
    }
    
    main, .result-section {
        padding: 1.5rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    #question-text {
        font-size: 1rem;
    }
    
    button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .option-item {
        padding: 0.6rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .language-dropdown-btn {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        min-width: 100px;
    }
    
    .language-dropdown-menu {
        min-width: 120px;
    }
    
    .language-option {
        padding: 0.5rem 0.6rem;
    }
    
    .language-option .name {
        font-size: 0.8rem;
    }
    
    header {
        padding: 0.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .logo {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    #aml-logo {
        height: 50px;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease;
}

.fade-out {
    animation: fadeOut 0.5s ease;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.result-low {
    border-left-color: #3cb371;
}

.result-medium {
    border-left-color: #ffa500;
}

.result-high {
    border-left-color: #dc3545;
}

.button-link {
    display: inline-block;
    background-color: #0057ff;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.7rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin-top: 1rem;
}

.button-link:hover {
    background-color: #0046cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 87, 255, 0.3);
}

.button-link:active {
    transform: translateY(0);
}

#contact-text {
    margin-top: 1.5rem;
    color: #333;
    font-size: 1rem;
    text-align: center;
} 