:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338ca;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f3f4f6;
    --surface-color: #ffffff;
    --border-color: #e5e7eb;
    --error-color: #ef4444;
    --success-color: #10b981;
    --radius: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: var(--surface-color);
    width: 100%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: auto;
    transition: all 0.3s ease;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--text-light);
    font-size: 14px;
    max-width: 90%;
    margin: 0 auto;
}

/* Progress Bar */
.progress-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.progress-step {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--border-color);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    z-index: 2;
    transition: all 0.3s ease;
}

.progress-step.active {
    background-color: var(--primary-color);
    color: white;
}

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

.progress-line {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 3px;
    width: 100%;
    background-color: var(--border-color);
    z-index: 1;
}

/* Forms */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

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

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background-color 0.2s;
}

.radio-option:hover, .checkbox-option:hover {
    background-color: var(--bg-color);
}

.radio-option input, .checkbox-option input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Rating Scale */
.rating-scale {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    background-color: var(--bg-color);
    padding: 15px;
    border-radius: var(--radius);
}

.rating-scale span {
    font-weight: 600;
    font-size: 14px;
}

.rating-scale input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.rating-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-light);
    padding: 0 10px;
}

/* Dynamic Inputs */
.sub-input {
    margin-top: 15px;
    padding: 15px;
    background-color: #f9fafb;
    border-radius: var(--radius);
    border: 1px dashed var(--border-color);
    transition: all 0.3s ease;
}

.full-width-input {
    width: 100%;
    margin-bottom: 10px;
}

.system-rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.system-rating-row:last-child {
    border-bottom: none;
}

.system-name {
    flex: 1;
    margin-right: 20px;
}

.rating-scale.small {
    padding: 5px 10px;
    gap: 10px;
}

.rating-scale.small input[type="radio"] {
    width: 16px;
    height: 16px;
}

/* Buttons */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

button {
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-next, .btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.btn-next:hover, .btn-submit:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-prev {
    background-color: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius);
}

.btn-prev:hover {
    background-color: var(--bg-color);
}

.btn-add {
    background-color: white;
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
    padding: 8px 16px;
    font-size: 13px;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
}

.btn-add:hover {
    background-color: #eef2ff;
    border-style: solid;
}

.section-divider {
    font-weight: 700;
    margin: 30px 0 15px 0;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 20px;
    }
    
    .rating-scale {
        flex-wrap: wrap;
        justify-content: center;
    }

    .system-rating-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .rating-scale.small {
        width: 100%;
        justify-content: space-between;
    }
}

/* Success Screen */
.success-container {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: var(--success-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.success-icon svg {
    width: 40px;
    height: 40px;
}

.success-container h2 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 10px;
    border-bottom: none;
    display: block;
}

.success-container p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.btn-home {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.btn-home:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.2);
}

.success-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.btn-close {
    background-color: white;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    padding: 12px 30px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

.btn-close:hover {
    background-color: var(--bg-color);
    color: var(--text-color);
    transform: translateY(-2px);
}
