/* --- Global Styles --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f7f6;
    color: #333;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* --- Main Survey Card --- */
.survey-container {
    max-width: 600px;
    width: 100%;
    margin: 20px;
}

#survey-form-container,
#thanks-page {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    padding: 30px 40px;
}

#thanks-page {
    text-align: center;
}

/* --- Form Elements --- */
.survey-page {
    margin-bottom: 20px;
}

h2, h3 {
    color: #2c3e50;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 8px;
}

input[type="text"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding to work right */
}

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.radio-group label {
    font-weight: normal;
    margin: 0 0 0 8px;
}

/* --- Navigation --- */
.navigation-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

button, .home-button {
    display: inline-block;
    background-color: #3498db;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, .home-button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
}

/* Make "Previous" less prominent */
#prev-btn {
    background-color: #95a5a6;
}
#prev-btn:hover {
    background-color: #7f8c8d;
}


/* --- Progress Bar --- */
.progress-bar {
    width: 100%;
    background-color: #ecf0f1;
    border-radius: 4px;
    margin-top: 20px;
}

#progress-bar-inner {
    height: 10px;
    width: 50%; /* Start at 50% for page 1 */
    background-color: #3498db;
    border-radius: 4px;
    transition: width 0.3s ease;
}

#page-counter {
    text-align: center;
    font-size: 0.9em;
    color: #777;
    margin-top: 8px;
}