* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background: linear-gradient(to bottom right, #f0f4ff, #e6e9ff);
    min-height: 100vh;
    padding: 2rem;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #1e1e1e;
    margin-bottom: 1rem;
}

.section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
}

.section.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2d3748;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background-color: #fff;
    color: #2d3748;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

button {
    padding: 0.75rem 1.5rem;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

button:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

button[onclick*="previous"] {
    background-color: #64748b;
}

button[onclick*="previous"]:hover {
    background-color: #475569;
}

#startAgainBtn {
    background-color: #ef4444;
}

#startAgainBtn:hover {
    background-color: #dc2626;
}

.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.progress-step {
    flex-grow: 1;
    text-align: center;
    color: #64748b;
    font-weight: 500;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.progress-step.active {
    opacity: 1;
    color: #4f46e5;
}

.hidden {
    display: none;
}

#emailPreview {
    white-space: pre-wrap;
    background-color: #f8fafc;
    color: #1e293b;
    padding: 1.5rem;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    margin: 1rem 0;
    font-family: monospace;
}

.radio-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.alert {
    padding: 1.5rem;
    border-radius: 6px;
    margin: 1rem 0;
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert strong {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.alert button {
    margin-right: 1rem;
    margin-top: 1rem;
    background-color: #991b1b;
}

.alert button:hover {
    background-color: #7f1d1d;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

@media (max-width: 600px) {
    .progress-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .progress-step {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 4px;
    }

    .button-container {
        flex-direction: column;
        gap: 1rem;
    }

    .button-container button {
        width: 100%;
    }
}