/**
 * Torch Wizard Styles
 */

.torch-wizard {
    background: var(--torch-bg);
    border-radius: calc(var(--torch-radius) * 2);
    box-shadow: var(--torch-shadow);
    overflow: hidden;
}

/* Progress Bar */
.torch-progress {
    height: 6px;
    background: var(--torch-bg-alt);
    position: relative;
}

.torch-progress-bar {
    height: 100%;
    background: var(--torch-primary);
    transition: width 0.4s ease;
}

.torch-progress-text {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 12px;
    color: var(--torch-text-light);
}

/* Steps */
.torch-steps {
    padding: 40px;
}

.torch-step {
    display: none;
    animation: torch-fadeIn 0.4s ease;
}

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

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

.torch-step-content {
    max-width: 600px;
    margin: 0 auto;
}

/* Intro Step */
.torch-step-intro .torch-title {
    font-size: 28px;
    color: var(--torch-text);
    margin: 0 0 20px;
    text-align: center;
}

.torch-step-intro .torch-description {
    color: var(--torch-text-light);
    font-size: 14px;
    margin-bottom: 30px;
    text-align: center;
}

.torch-step-intro .torch-start-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    padding: 18px;
    font-size: 18px;
}

/* User Form */
.torch-step-title {
    font-size: 24px;
    margin: 0 0 10px;
    text-align: center;
}

.torch-step-subtitle {
    color: var(--torch-text-light);
    font-size: 14px;
    margin: 0 0 30px;
    text-align: center;
}

.torch-field {
    margin-bottom: 20px;
}

.torch-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
}

.torch-field label .required {
    color: var(--torch-primary);
}

.torch-field input[type="text"],
.torch-field input[type="email"],
.torch-field input[type="tel"],
.torch-field select {
    width: 100%;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 14px;
    border: 2px solid var(--torch-border);
    border-radius: var(--torch-radius);
    transition: var(--torch-transition);
}

.torch-field input:focus,
.torch-field select:focus {
    outline: none;
    border-color: var(--torch-primary);
}

.torch-field.has-error input,
.torch-field.has-error select {
    border-color: var(--torch-error);
}

.torch-error-message {
    display: block;
    color: var(--torch-error);
    font-size: 13px;
    margin-top: 5px;
}

.torch-field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.torch-field-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--torch-primary);
}

.torch-field-checkbox label {
    margin: 0;
    font-weight: normal;
}

.torch-field-checkbox a {
    color: var(--torch-primary);
}

/* Question Steps */
.torch-question-counter {
    display: block;
    color: var(--torch-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.torch-dimension-label {
    display: block;
    background: var(--torch-bg-alt);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: var(--torch-text-light);
    margin-bottom: 15px;
    text-align: center;
}

.torch-question-text {
    font-size: 22px;
    line-height: 1.4;
    margin: 0 0 30px;
    text-align: center;
}

/* Options (Radio) */
.torch-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.torch-option {
    display: block;
    cursor: pointer;
}

.torch-option input {
    position: absolute;
    opacity: 0;
}

.torch-option-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: var(--torch-bg);
    border: 2px solid var(--torch-border);
    border-radius: var(--torch-radius);
    transition: var(--torch-transition);
}

.torch-option:hover .torch-option-label {
    border-color: var(--torch-primary);
    background: rgba(var(--torch-primary-rgb), 0.02);
}

.torch-option input:checked + .torch-option-label {
    border-color: var(--torch-primary);
    background: rgba(var(--torch-primary-rgb), 0.05);
}

.torch-option-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--torch-bg-alt);
    border-radius: 50%;
    font-weight: 600;
    color: var(--torch-text-light);
    flex-shrink: 0;
    transition: var(--torch-transition);
}

.torch-option input:checked + .torch-option-label .torch-option-key {
    background: var(--torch-primary);
    color: #ffffff;
}

.torch-option-text {
    flex: 1;
    font-size: 14px;
}

/* Scale (1-10) */
.torch-scale {
    margin-bottom: 30px;
}

.torch-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--torch-text-light);
    margin-bottom: 15px;
}

.torch-scale-options {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.torch-scale-option {
    cursor: pointer;
}

.torch-scale-option input {
    position: absolute;
    opacity: 0;
}

.torch-scale-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--torch-bg);
    border: 2px solid var(--torch-border);
    border-radius: var(--torch-radius);
    font-weight: 600;
    transition: var(--torch-transition);
}

.torch-scale-option:hover .torch-scale-number {
    border-color: var(--torch-primary);
}

.torch-scale-option input:checked + .torch-scale-number {
    background: var(--torch-primary);
    border-color: var(--torch-primary);
    color: #ffffff;
}

/* Navigation */
.torch-nav {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.torch-nav .torch-btn {
    min-width: 140px;
}

/* Loading */
.torch-loading {
    text-align: center;
    padding: 60px 20px;
}

.torch-loading .torch-spinner {
    margin: 0 auto 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .torch-steps {
        padding: 25px 20px;
    }

    .torch-step-intro .torch-title {
        font-size: 22px;
    }

    .torch-question-text {
        font-size: 18px;
    }

    .torch-scale-number {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .torch-nav {
        flex-direction: column;
    }

    .torch-nav .torch-btn {
        width: 100%;
    }
}
