:root {
    --primary-color: #FFBF23;
    --primary-dark: #E6AB00;
    --primary-light: #FFD666;
    --white: #FFFFFF;
    --black: #000000;
    --dark: #333333;
    --gray: #6C757D;
    --light-gray: #F5F5F5;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --font-family: 'Poppins', 'Montserrat', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--white);
    color: var(--dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    display: inline-block;
    max-width: 300px;
    margin: 0 auto;
}

.logo-svg, .logo-img {
    width: 100%;
    height: auto;
    max-height: 120px;
}

/* Wizard Container */
.wizard-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

/* Progress Bar */
.progress-container {
    padding: 20px 20px 40px 20px;
    margin-bottom: 20px;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Align items to top */
    position: relative;
    padding-top: 10px;
    /* Le seguenti proprietà aiutano a limitare l'area della barra di progresso */
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Container for step icon + text */
.progress-step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 60px;
}

.progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    z-index: 10;
    position: relative;
    transition: var(--transition);
    margin-bottom: 8px;
}

/* Rimuovo il testo sotto i passaggi */

/* Rimuovo le linee (trattini) prima di ogni passaggio */

.progress-step.active, .progress-step.completed {
    background-color: var(--primary-color);
    color: var(--black);
}

/* Removing :has() selector as it may not be supported in all browsers
   The styling will be handled directly by JavaScript */

.progress-step i {
    font-size: 16px;
}

.progress-bar {
    position: relative; /* Cambiato da static a relative */
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden; /* Nascondiamo qualsiasi cosa sporga */
}

.progress {
    position: absolute;
    height: 4px;
    background-color: var(--primary-color);
    top: 28px; /* Posizionato sotto le icone */
    left: 20px; /* Inizia dal centro della prima icona */
    width: 0; /* Inizializzato a 0, il JavaScript imposterà la larghezza corretta */
    z-index: 1;
    transition: var(--transition);
    transform-origin: left center;
}

.progress-step-container {
    position: relative;
}

/* Form Styles */
.form {
    padding: 30px;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.form-step.active {
    display: block;
}

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

.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--black);
    text-align: center;
}

.form-description {
    font-size: 16px;
    color: var(--black);
    margin-bottom: 30px;
    text-align: center;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 191, 35, 0.2);
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn i {
    margin-left: 8px;
    margin-right: 0;
}

.btn i:first-child {
    margin-left: 0;
    margin-right: 8px;
}

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

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

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark);
}

.btn-secondary:hover {
    background-color: #D8DCE2;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option-card {
    position: relative;
}

.option-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    height: 100%;
}

.option-label:hover {
    background-color: #D8DCE2;
}

.option-card input[type="radio"]:checked + .option-label {
    background-color: var(--primary-color);
    color: var(--dark);
}

.option-label .icon {
    font-size: 24px;
    margin-bottom: 10px;
}

.option-label .icon-small {
    font-size: 14px;
    margin-left: -8px;
}

.budget-box {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    display: inline-block;
    padding: 10px 15px;
    background-color: rgba(0,0,0,0.05);
    border-radius: 6px;
    margin-top: 5px;
}

.option-card input[type="radio"]:checked + .option-label .budget-box {
    background-color: rgba(0,0,0,0.1);
}

/* Checkbox Styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 14px;
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--primary-dark);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

/* Error message styles */
.error-message {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 6px;
    padding: 6px 10px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: var(--border-radius);
    display: none;
}

.error-message.show {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #e74c3c;
}

.option-grid-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px 12px;
    background-color: rgba(231, 76, 60, 0.1);
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

.option-grid-error.show {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

/* Success Animation */
.success-animation {
    text-align: center;
    margin: 20px 0 30px;
}

.success-animation i {
    font-size: 60px;
    color: #28a745;
    animation: scaleIn 0.5s ease forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .form {
        padding: 20px;
    }
    
    .form-title {
        font-size: 22px;
    }
    
    .progress-step {
        width: 35px;
        height: 35px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

/* Dark Mode Support - Disabled for now to keep everything white with black text */
@media (prefers-color-scheme: dark) {
    /* Override styles to maintain white theme even in dark mode */
    :root {
        --white: #FFFFFF;
        --black: #000000;
        --dark: #333333;
        --gray: #6C757D;
        --light-gray: #F5F5F5;
    }
    
    body {
        background-color: #FFFFFF;
    }
    
    .logo-svg path,
    .logo-svg text {
        fill: #000000;
    }
}
