.modal__progress {
    margin-bottom: 16px;
}

.modal__form--brief {
    --brief-focus-shadow:
        rgba(0, 0, 0, 0) 0 0 0 0,
        rgba(0, 0, 0, 0) 0 0 0 0,
        rgba(0, 0, 0, 0) 0 0 0 0,
        oklab(0.524653 0.179994 0.0848948 / 0.5) 0 0 0 3px,
        rgba(0, 0, 0, 0) 0 0 0 0;
}

.modal__progress-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted-foreground);
    margin-bottom: 8px;
}

.modal__progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 9999px;
    background-color: #f1f1f1;
    overflow: hidden;
}

.modal__progress-fill {
    display: block;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.modal__step {
    display: none;
}

.modal__step.is-active {
    display: block;
}

.modal__steps {
    position: relative;
    min-height: var(--brief-steps-min-height, 0);
}

.modal__step-title {
    margin: 0 0 14px;
    font-size: 20px;
    line-height: 1.25;
}

.modal__choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
}

.modal__choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background-color: #f8f8f8;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    cursor: pointer;
}

.modal__choice input {
    flex-shrink: 0;
}

.modal__choice input[type="radio"],
.modal__choice input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: 2px solid var(--color-border);
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--color-background);
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
}

.modal__choice input[type="radio"]:checked,
.modal__choice input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.modal__choice input[type="radio"]:checked::after,
.modal__choice input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0;
    width: 4px;
    height: 8px;
    border: solid var(--color-background);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.modal__choice span {
    font-size: 14px;
    line-height: 1.4;
}

.modal__choice:has(input:checked) {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--brief-focus-shadow);
    background-color: #fff7f7;
}

.modal__group--activity-select {
    position: relative;
}

.brief-select__native {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.brief-select__trigger {
    width: 100%;
    min-height: 40px;
    border: 1px solid rgba(0, 0, 0, 0);
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.brief-select__trigger.is-placeholder {
    color: var(--color-muted-foreground);
}

.brief-select__trigger:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--brief-focus-shadow);
}

.brief-select__trigger.is-active,
.brief-select__trigger.is-invalid {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: var(--brief-focus-shadow);
}

.brief-select__icon {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-muted-foreground);
    border-bottom: 2px solid var(--color-muted-foreground);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -2px;
    flex-shrink: 0;
}

.brief-select__trigger[aria-expanded="true"] .brief-select__icon {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.brief-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 25;
    display: none;
    max-height: 320px;
    overflow-y: auto;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    padding: 6px;
}

.brief-select__menu.is-open {
    display: block;
}

.brief-select__option {
    width: 100%;
    border: none;
    background: transparent;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    color: var(--color-foreground);
}

.brief-select__option:hover,
.brief-select__option:focus {
    outline: none;
    background-color: #f8f8f8;
}

.brief-select__option.is-selected {
    background-color: #fff7f7;
    color: var(--color-primary);
}

.modal__actions--wizard {
    justify-content: flex-end;
}

.modal__actions--wizard .modal__btn[hidden] {
    display: none;
}

@media (max-width: 768px) {
    .modal__step-title {
        font-size: 18px;
    }

    .modal__actions--wizard {
        flex-wrap: wrap;
    }

    .modal__actions--wizard .modal__btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }
}
