:root {
    --primary:rgb(4, 188, 172);
    --primary-dark: rgb(28, 151, 141);
    --success: rgb(63, 211, 199);
    --danger: #ff5723;
    --gray-50: #f6f8fa;
    --gray-100: #eaeef2;
    --gray-200: #d0d7de;
    --gray-300: #afb8c1;
    --gray-400: #8b949e;
    --gray-500: #6e7781;
    --gray-600: #57606a;
    --gray-700: #424a53;
    --gray-800: #32383f;
    --gray-900: #24292f;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: var(--gray-900);
    background: #f1f5f9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Splash and End Screen Styles */
.splash-screen, .end-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.splash-screen.hide, .end-screen.hide {
    opacity: 0;
    pointer-events: none;
}

.splash-screen h1, .end-screen h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.splash-screen p, .end-screen p {
    font-size: 1.25rem;
    color: var(--gray-600);
    max-width: 600px;
    margin-bottom: 2rem;
}

.splash-icon, .end-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.onboarding-container {
max-width: 750px;
margin: 3rem auto; 
margin-top: 0rem;  
margin-bottom: 0rem;
padding: 1rem;
background: white;
border-radius: 12px;
box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.288);
width: 95%;
}

.progress-nav {
    overflow-x: auto;
    padding: 0.5rem;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: var(--gray-100);
    margin-bottom: 2rem;
    position: relative;
}

.progress {
    position: absolute;
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: 600px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}
.step-number {
width: 32px;
height: 32px;
border-radius: 50%;
background: white;
border: 2px solid var(--gray-200);
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
margin-bottom: 0.5rem;
transition: all 0.3s ease;
}
.step.active .step-number {
background: var(--primary);
color: white;
border-color: var(--primary);
}

.step.completed .step-number {
background: var(--success);
border-color: var(--success);
color: white;
}

.step.active {
opacity: 1;
}
.checkbox-grid,
.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.calculator-section {
    background: var(--gray-50);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.calculator-section h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

@media (max-width: 768px) {
    .onboarding-container {
        margin: 1rem auto;
        padding: 1rem;
    }

    .checkbox-grid,
    .style-grid {
        grid-template-columns: 1fr;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
    }

    .steps {
        min-width: 500px;
    }

    .step-text {
        font-size: 0.75rem;
    }
}

.form {
position: relative;
}

.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);
}
}

h1 {
font-size: 1.875rem;
font-weight: 600;
margin-bottom: 0.5rem;
color: var(--gray-900);
text-align: center;
}

.step-description {
color: var(--gray-600);
margin-bottom: 2rem;
text-align: center;
}

.input-group {
margin-bottom: 1.5rem;
}

label {
display: block;
margin-bottom: 0.5rem;
font-weight: 500;
color: var(--gray-700);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
width: 100%;
padding: 0.75rem;
border: 1px solid var(--gray-200);
border-radius: 6px;
font-size: 1rem;
transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0, 112, 243, 0.1);
}

.checkbox-grid,
.style-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 1rem;
margin-bottom: 2rem;
}

.checkbox-card,
.style-card {
position: relative;
cursor: pointer;
}

.checkbox-card input,
.style-card input {
position: absolute;
opacity: 0;
cursor: pointer;
}

.card-content {
padding: 1.5rem;
border: 1px solid var(--gray-200);
border-radius: 8px;
text-align: center;
transition: all 0.3s ease;
}

.checkbox-card:hover .card-content,
.style-card:hover .card-content {
border-color: var(--primary);
}

input:checked + .card-content {
border-color: var(--primary);
background: rgba(0, 112, 243, 0.05);
}
.checkbox-card .card-content {
    display: flex;
    align-items: center;
}

.checkbox-card svg {
    margin-right: 8px; 
}

.checkbox-card span {
    font-size: 18px; 
}

.icon {
width: 32px;
height: 32px;
margin-bottom: 1rem;
}

.style-card img {
width: 100%;
height: 150px;
object-fit: cover;
border-radius: 4px;
margin-bottom: 1rem;
}

.form-navigation {
display: flex;
justify-content: space-between;
margin-top: 3rem;
padding-top: 2rem;
border-top: 1px solid var(--gray-100);
}

.btn {
    padding-top: 0.5rem;
    padding-right: 0.8rem;
    padding-bottom: 0.4rem;
    padding-left: 0.8rem;
border-radius: 25px;
font-size: 1rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}

.btn-back {
background: white;
border: 1px solid var(--gray-200);
color: var(--gray-700);
}

.btn-back:hover:not(:disabled) {
background: var(--gray-50);
}

.btn-next,
.btn-submit {
background: var(--primary);
border: none;
color: white;
}

.btn-next:hover,
.btn-submit:hover {
background: var(--primary-dark);
}

.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}

input.error,
select.error,
textarea.error {
border-color: var(--danger);
}
.input-group-pair {
display: grid;
grid-template-columns: repeat(2, 1fr); 
gap: 1rem; /* Space between fields */
}

@media (max-width: 768px) {
.input-group-pair {
grid-template-columns: 1fr; 
}
}
