:root {
    --primary-color: #548357;
    --secondary: #A491D3;
    --text-color: #333333;
    --text-light-color: #666666;
    --background-color: #F9F9F9;
    --border-color: #DDDDDD;
    --white: #FFFFFF;
}

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

html {
    font-size: 16px;
}

body > header{
    display: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

/* --- Progress Bar --- */
#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

#progress-text {
    font-size: 0.875rem;
    color: var(--text-light-color);
    margin-bottom: 0.5rem;
    display: block;
}

#progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

#progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: width 0.4s ease-in-out;
}

/* --- Main Content & Form --- */
.form-wrapper {
    width: 100%;
    max-width: 600px;
    padding: 2rem;
    padding-top: 100px; /* Offset for fixed progress bar */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}

#step-container {
    width: 100%;
    min-height: 300px; /* Prevent layout shift */
    display: grid;
    grid-template-columns: max-content 1fr;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align content to the left */
    text-align: left;
    animation: fadeIn 0.5s ease-in-out;
}

.step-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.step-title {
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 2rem;
    line-height: 1.3;
    width: max-content;
    max-width: 70vw;
}

.step-input-area {
    width: 100%;
    grid-column: 1/span 2;
}

/* --- Form Elements Styling --- */
select, input[type="text"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.25rem;
    font-family: 'Poppins', sans-serif;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--white);
    color: var(--text-color);
    transition: border-color 0.3s, box-shadow 0.3s;
}

select:focus, input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(84, 131, 87, 0.2);
}

.radio-option {
    display: block;
    position: relative;
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    font-size: 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s, background-color 0.3s;
}

.radio-option:hover {
    border-color: var(--secondary);
}

.radio-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
p {
    max-width: 90vw;
}

.radio-checkmark {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    height: 24px;
    width: 24px;
    background-color: #eee;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: background-color 0.3s;
}

.radio-option input:checked ~ .radio-checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.radio-checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 8px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-option input:checked ~ .radio-checkmark:after {
    display: block;
}

.radio-option input:checked ~ span {
    font-weight: 500;
}

/* --- Navigation Buttons --- */
.navigation-buttons {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

#next-btn, #back-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

#next-btn {
    background-color: var(--primary-color);
    color: var(--white);
    margin-left: 1rem;
}

#next-btn:hover {
    background-color: #456d48;
}

#back-btn {
    background-color: transparent;
    color: var(--text-light-color);
}

#back-btn:hover {
    background-color: #f0f0f0;
}

button:active {
    transform: translateY(1px);
}

#back-btn.hidden {
    visibility: hidden;
}

/* --- Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    body {
        align-items: flex-start;
    }
    .form-wrapper {
        padding: 1rem;
        padding-top: 90px;
    }
    .step-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    #progress-bar-container {
        padding: 0.75rem 1rem;
    }
    .form-wrapper {
        padding-top: 80px;
    }
    .step-title {
        font-size: 1.5rem;
    }
    .navigation-buttons {
       flex-direction: column-reverse;
    }
    #next-btn {
        width: 100%;
        margin-left: 0;
        margin-bottom: 1rem;
        padding: 1rem;
    }
    #back-btn {
        width: 100%;
        padding: 1rem;
    }
}