:root {
    --primary: #002060;
    --secondary: #ff6f00;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --success: #28a745;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
    background-color: #f5f5f5;
}

.container {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    width: 50%;
    max-width: 250px;
    margin: 0 auto;
    display: block;
}

header {
    background-color: #002060;
    h1{color: #ffffff;}
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 30px;
    background-size:auto;
    height: 150px;
}

h1, h2, h3 {
    color: #002060;
}

.quiz-container {
    background: white;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    padding: 30px;
    margin-bottom: 30px;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

input, select {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #ffA000;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

.progress-container {
    width: 100%;
    background-color: #f1f1f1;
    border-radius: 5px;
    margin: 20px 0;
}

.progress-bar {
    height: 10px;
    border-radius: 5px;
    background-color: var(--secondary);
    width: 0%;
    transition: width 0.5s ease-in-out;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
    gap: 20px;
}

.feature {
    flex: 1;
    min-width: 250px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.feature-icon {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 15px;
}

.results-container {
    text-align: center;
}

.cta-button {
    background-color: var(--secondary);
    margin-top: 20px;
    border-radius:4 px;
    font-size: 18px;
    padding: 15px 30px;
}

footer {
    background-color: black;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

/* Loading Screen Styles */
.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 30px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #002060;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.results-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 0 38px 0px rgba(0,0,0,0.1);
    margin: 0 auto 30px auto;
    max-width: 800px;
}

.recommendation-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
    margin-top: 30px;
}

.results-container h2, .results-container h3{
    color: var(--primary);
    text-align: center;
}

.results-container h4,.results-container h5, .results-container p{
    text-align: left;
}

.product_pre, .product_prova, .sugest, .additional {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 18px 16px;
    box-shadow: 0 0 12px 0 rgba(2,32,64,0.04);
    margin-top: 8px;
    font-size: 1.04em;
}

@media (max-width: 768px) {
    .features {
        flex-direction: column;
    }
}