:root {
    --primary-color: #6a5af9;
    --primary-color-light: #8a7dfc;
    --background-color: #0f172a;
    --surface-color: rgba(255, 255, 255, 0.05);
    --surface-color-hover: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-color: #e2e8f0;
    --text-color-muted: #94a3b8;
    --font-family: 'Poppins', sans-serif;
    --border-radius: 16px;
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    background-image: url('https://offertabs.s3.amazonaws.com/offer/4cojbc/69c061f63a79c7.76639123.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.main-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.header-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    background: linear-gradient(120deg, #fff, var(--primary-color-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-subtitle {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    max-width: 500px;
    margin: 0 auto;
}

.form-container, .result-container {
    background: var(--surface-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-indicator {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-color-light));
    width: 25%; /* Start at 25% for step 1 of 4 */
    border-radius: 4px;
    transition: width var(--transition-speed) ease-in-out;
}

.form-step {
    animation: fadeIn 0.5s ease-in-out;
}

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

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
}

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

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

input[type="text"], input[type="email"], input[type="tel"] {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all var(--transition-speed) ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 90, 249, 0.3);
}

input::placeholder {
    color: var(--text-color-muted);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-family);
    color: #fff;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
}

.btn:hover:not(:disabled) {
    background: var(--primary-color-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 90, 249, 0.3);
}

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

.btn-next {
    width: 100%;
    margin-top: 1rem;
}

.btn-submit {
    flex-grow: 1;
}

.btn-back {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color-muted);
}

.btn-back:hover {
    background: var(--surface-color-hover);
    color: var(--text-color);
    transform: none;
    box-shadow: none;
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.choice-btn {
    width: 100%;
    padding: 1.5rem 1rem;
    font-size: 1rem;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.choice-btn:hover {
    background-color: var(--surface-color-hover);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.choice-btn.selected {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.result-container {
    text-align: center;
}

.icon-container {
    width: 80px;
    height: 80px;
    background-color: rgba(106, 90, 249, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
}

.icon-container svg {
    width: 40px;
    height: 40px;
    color: var(--primary-color);
}

.result-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.result-message {
    color: var(--text-color-muted);
    font-size: 1.1rem;
    line-height: 1.7;
}

.error-message {
    background-color: #ff3b3b20;
    color: #ff8a8a;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin-top: 1.5rem;
}

#wbx-powered-by-slot {
    text-align: center;
    margin-top: 2rem;
}

/* Utilities */
.hidden {
    display: none !important;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}


@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .header-title {
        font-size: 2rem;
    }

    .form-container, .result-container {
        padding: 1.5rem;
    }

    .choice-grid {
        grid-template-columns: 1fr;
    }

    .choice-btn {
        padding: 1rem;
    }
}
